TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2016 |
SPMSupports SPM | ✗ |
Maintained by mozhenhau.
纯代码实现,不需要加图
D3Notice是用swift写的IOS的自定义AlertView。包括纯文字提示,成功、失败、警告和菊花图。是扩展UIViewController的实现。
对应上图的功能,直接在UIViewController里使用
clearAllNotice()
showNoticeSuc("suc")
showNoticeSuc("suc", time: D3Notice.longTime, autoClear: false)
showNoticeErr("err")
showNoticeInfo("info")
showNoticeWait()
showNoticeText("text")
如果不是在UIViewController,使用方法:
D3Notice.showNoticeWithText(NoticeType.success, text: "suc",time: D3Notice.longTime, autoClear: true)
配合本人github项目里的D3View可容易实现弹窗动画 地址:https://github.com/mozhenhau/D3View
D3Notice加动画效果已集成至D3View里的D3Notice
只需拖动D3Notice.swift文件