DZPopupMessageView
简单消息显示队列
如何使用
- 导入
import DZPopupMessageView
- 显示消息
/// paramters
/// - message text: String
/// - theme: DZPopupMessage.Theme(enum)
/// can be nil, default is .light
/// - type: DZPopupMessage.MessageType(enum)
/// can be nil, default is .info
/// - display: DZPopupMessage.DisplayType(enum)
/// can be nil, default is .bubbleTop
DZPopupMessage.show({msg text}, theme: {theme}, type: {type}, display: {display}, callback: {
// do some thing
})
- 参数
-
主题
- DZPopupMessage.Theme.light
- DZPopupMessage.Theme.dark
-
类型
- DZPopupMessage.MessageType.info
- DZPopupMessage.MessageType.warning
- DZPopupMessage.MessageType.error
-
显示方式
- DZPopupMessage.DisplayType.rise
- DZPopupMessage.DisplayType.drop
- DZPopupMessage.DisplayType.bubbleTop
- DZPopupMessage.DisplayType.bubbleBottom
-
可以像这样使用
DZPopupMessage.show("Message body");
DZPopupMessage.show({msg text}, theme: {theme}, type: {type}, display: {display});
DZPopupMessage.show({msg text}, theme: {theme}, type: {type});
...
需求
Xcode
安装
DZPopupMessageView 可通过 CocoaPods 获取。要安装它,请简单地添加以下行到您的 Podfile
pod "DZPopupMessageView"
作者
darkzero, [email protected]
许可
DZPopupMessageView 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。