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

相关文章
相关标签/搜索