MBProgressHUDEasy
对MBProgressHUD进行简单封装,调用更加简单方便
Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :iOS, '8.0'
target 'TargetName' do
pod 'MBProgressHUDEasy'
end
代码使用
//普通文字样式提醒
[MBProgressHUD showText:@"上传内容为空"];
//显示加载中loadding样式
MBProgressHUD *hud = [MBProgressHUD showLoadding];
//请求成功后移除MBProgressHUD
[hud removeFromSuperviewWithMainQueue];
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
//ViewController消失时,移除MBProgressHUD对象(text类型除外)
[MBProgressHUD cleanAllProgressHUD:NO];
}
ZCFirUpdate
针对Fir添加app动态更新,有利于测试人员 及时获取最新app,上线时请删除
Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :iOS, '8.0'
target 'TargetName' do
pod 'AFNetworking'
end
在info.plist中添加Fir Token Key
<key>ZCFirTokenKey</key>
<string>845642dd3e510ced13be5739da4fa49f</string>
默认情况下,每次打开app(即app启动或app从后台切换到前台时)会自动检查更新,无需编写代码;
如果需要手动检查更新,可以调用以下代码
[[ZCFirUpdate shared] zc_update];//手动检查更新