iOS开发常用的第三方类库
请求完成时隐藏提示效果:
1 | [HUD hide:YES]; |
对于同步方法一般都是用showWhileExecuting方法,方法执行完成之后会自动隐藏提示效果:
1 | [HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES]; |
SVProgressHUD 提示效果
GitHub:https://github.com/samvermette/SVProgressHUD
SVProgressHUD和MBProgressHUD效果差不多,不过不需要使用协议,同时也不需要声明实例。
直接通过类方法进行调用即可:
1 | [SVProgressHUD method] |
可以使用以下方法来显示状态:
1 2 3 4 | + (void)show; + (void)showWithMaskType:(SVProgressHUDMaskType)maskType;
相关推荐
技术专区 |
评论