SwiftNotice 發佈——純 Swift 編寫的彈出提示及「菊花會動」庫

Github地址: https://github.com/johnlui/SwiftNoticegit

SwiftNotice 是一款用純 Swift 編寫而成的彈出提示及「菊花會動」 UI 組件庫,無需任何圖片,支持任何滾動視圖。github

效果展現

SwiftNotice gif

使用方法

在任何繼承自 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

相關文章
相關標籤/搜索