ModuleProgressHUD
示例
要运行示例项目,请克隆仓库,然后首先从示例目录运行 pod install
。
需求
安装
ModuleProgressHUD 通过 CocoaPods 提供。
pod search ModuleProgressHUD
# -> ModuleProgressHUD (1.0.9)
# Module ProgressHUD wrap lib with quick usage and style settings.
# pod 'ModuleProgressHUD', '~> 1.0.9'
# - Homepage: https://github.com/blodely/ModuleProgressHUD
# - Source: https://github.com/blodely/ModuleProgressHUD.git
# - Versions: 1.0.9 [master repo]
要安装它,只需将以下行添加到 Podfile:
pod "ModuleProgressHUD"
使用方法
样式自动配置
将 conf-progress-hud.plist
文件复制到您的项目中,并做出所需更改。
在应用程序代理中调用 [ModuleProgressHUD autoConfigure]
;一次。
使用格式字符串显示消息
# show message with format string
+showErrorWithFormatStatus:...
+showSuccessWithFormatStatus:...
# show message only when there's a hud view already in display
+tryToShowErrorWithFormatStatus:...
# show a message string with delay
+showMessage:withDelay:
# show a progress pie and hide it
+showProgressHideAfter:
作者
许可
ModuleProgressHUD 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。