Github地址: https://github.com/johnlui/SwiftNoticegit
SwiftNotice 是一款用純 Swift 編寫而成的彈出提示及「菊花會動」 UI 組件庫,無需任何圖片,支持任何滾動視圖。github
在任何繼承自 UIViewController 的類中均可以直接使用:swift
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()
下載 SwiftNotice.swift 並拖入你的 Xcode 工程。app
iOS 7.0+ui
Xcode 6.3spa
Swift 1.2code