Github地址: https://github.com/johnlui/SwiftNotice
SwiftNotice 是一款用纯 Swift 编写而成的弹出提示及“菊花会动” UI 组件库,无需任何图片,支持任何滚动视图。
@H_502_4@效果展示@H_502_4@使用方法
在任何继承自 UIViewController 的类中都可以直接使用:
swiftself.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()@H_502_4@安装方式
下载 SwiftNotice.swift 并拖入你的 Xcode 工程。
@H_502_4@版本要求iOS 7.0+
Xcode 6.3
Swift 1.2