#EMNoticeView Swift 中可自定义的通知视图
您可以更改通知视图颜色主题和字体,并以不同的持续时间、文本和图像触发一系列通知。 注意视图将支持旋转,并且适用于 iPhone 和 iPad,最低 iOS 版本为 8.0
##Usage 有一个默认中心负责发出通知。 唯一应该做的是定义自定义通知并将其添加到队列中,然后要求默认中心触发队列。
let notice: EMNoticeView = EMNoticeView(duration: 5)
notice.backgroundColor = UIColor.BlueColor()
notice.textLabel.text = “The first notice message.”
notice.imageView.image = UIImage(named: “notice”)
这定义了将显示 5 秒的通知。 背景
评论0
最新资源