SBAProgressHud
SBAProgressHud 是用于 iOS 应用程序的简单易用进度 HUD,使用 Swift 编写。
安装
使用 CocoaPods.
pod 'SBAProgressHud'
用法
在视图中显示 hud
SBAProgressHud.showHud(to: view,title: "Loading...")
从视图中隐藏 hud
SBAProgressHud.hideHud(from: view)
自定义
SBAProgressHud.showHud(to: view, title: "Loading..", tintColor: UIColor.orange, dimBackground: true, removeAfter: 5)
恭喜!您已完成。