ZCCLLocationSino 1.0.0

ZCCLLocationSino 1.0.0

Maintained by Unclaimed.



  • By
  • 王志超

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];//手动检查更新