SVPProgressHUD 与 MBProgressHUD
来源:互联网 发布:js 转动效果 编辑:程序博客网 时间:2024/06/01 16:16
MBProgressHUD、SVProgressHUD基本使用方法
https://github.com/jdg/MBProgressHUD
https://github.com/TransitApp/SVProgressHUD
1.MBProgressHUD
先导入MBProgressHUD.h .m导入工程,声明MBProgressHUDDelegate
{
MBProgressHUD* MBHUD;
}
MBHUD= [[MBProgressHUDalloc]initWithView:self.navigationController.view];
MBHUD.delegate = self;
[self.navigationController.view addSubview:MBHUD];
//小菊花
MBHUD.delegate=self;
[MBHUD showWhileExecuting:@selector(XXXX) onTarget:self withObject:nil animated:YES];
//Determinate Mode
MBHUD.mode=MBProgressHUDModeAnnularDeterminate;
MBHUD.delegate=self;
MBHUD.labelText=@"Loading";
[MBHUD showWhileExecuting:@selector(myProgressTask)onTarget:self withObject:nil animated:YES];
//Dim background
MBHUD.dimBackground=YES;
用完时候实现一下
- (void)hudWasHidden:(MBProgressHUD*)hud {
[hud removeFromSuperview];
hud=nil;
}
2.SVProgressHUD
//感叹号
[SVProgressHUD showInfoWithStatus:@"xxxxx."];
//成功
[SVProgressHUD showSuccessWithStatus:@"Success!"];
//错误
[SVProgressHUD showErrorWithStatus:@"Error"];
个人一般就用这三个,配合大量数据请求的话还是用 MB,个人看法。
- SVPProgressHUD 与 MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- MBProgressHUD
- AFN与MBProgressHUD的组合封装
- iOS提示框之 MBProgressHUD 与 SVProgressHUD
- MBProgressHUD使用
- Pull方法解析XML
- CentOS安装jdk的三种方法
- CImage图像得到BYTE数组数据 - 8bit灰度图像
- Spring基础
- oracle高效sql
- SVPProgressHUD 与 MBProgressHUD
- UVA - 10763 Foreign Exchange
- 天猫双11爬虫(福利:212万条商品数据免费下载)
- 加班,加班,加班。。。。。
- 【Unity】Kinect获取预制的手势信息
- 数据库事务
- 超链接 a href 提交表单通过post方式
- 本地使用qemu+libvirt来管理镜像
- HNUOJ_10014