SwiftNotice 发布——纯 Swift 编写的弹出提示及“菊花会动”库
Github地址: https://github.com/johnlui/SwiftNotice
SwiftNotice 是一款用纯 Swift 编写而成的弹出提示及“菊花会动” UI 组件库,无需任何图片,支持任何滚动视图。
效果展示

使用方法
在任何继承自 UIViewController 的类中都可以直接使用:
self.pleaseWaite()
self.notice("Success!", type: NoticeType.success, autoClear: true)
self.notice("Error!", type: NoticeType.error, autoClear: true)
self.notice("Info", type: NoticeType.info, autoClear: true)
self.noticeOnlyText("Only Text")
// clear all
self.clearAllNotice()
安装方式
下载 SwiftNotice.swift 并拖入你的 Xcode 工程。
版本要求
* iOS 7.0+
* Xcode 6.3
* Swift 1.2
评论:
太给力了,正是我需要的效果,感谢楼主无私分享,有时间我也要好好研读一下,太厉害了
2018-01-25 10:49
下面是我调用的代码:
SimpleCoreBluetooth.sharedInstance.startSearchDeviceWithFilter(second: 10.0,filter: { () -> ([String]) in
return ["cool"] //
}) { (deviceList) in
print(deviceList) // 回传的列表
self.deviceList = deviceList
self.tableView.reloadData()
self.clearAllNotice()
}
self.pleaseWait()