MBProgressHUD+FastCall
2015-11-28 17:35
309 查看
+ (void)showHudTipStr:(NSString *)tipStr; + (void)showHudTipStr:(NSString *)tipStr{ if (tipStr && tipStr.length > 0) { MBProgressHUD *hud = [self showHUDAddedTo:[UIApplication sharedApplication].keyWindow animated:YES]; hud.mode = MBProgressHUDModeText; hud.detailsLabelFont = [UIFont boldSystemFontOfSize:15.0]; hud.detailsLabelText = tipStr; hud.margin = 10.f; hud.removeFromSuperViewOnHide = YES; [hud hide:YES afterDelay:1.0]; } }
调用
[self.user updateInBackgroundWithResultBlock:^(BOOL isSuccessful, NSError *error) { NSString *tip = isSuccessful?@"设置成功":error.userInfo[@"error"]; [MBProgressHUD showHudTipStr:tip]; }];
相关文章推荐
- 华东交通大学2015年ACM“双基”程序设计竞赛
- 十七道海量数据处理面试题与Bit-map详解
- 【Leetcode】Letter Combinations of a Phone Number
- delphi 获取颜色值的RGB
- BNU 1111(dfs+剪枝)
- ViewPager 指示器
- NVIDIA Cuda 7.5 on Ubuntu 14.04 64 bits
- ora-01950 no privileges on tablespasce TESTDATA 错误解决办法
- java 集合 有一个字符串,其中包含中文字符、英文字符和数字字符,请统计和打印出各个字符的个数
- 南大软院大神养成计划第十三天
- 新博客?
- A little runtime excursion
- 新版本的驰骋工作流引擎ccbpm将有那些变化?
- 《中国人的性格》摘要
- [项目基础]WCF初识小结
- NSOperation
- Spring 的扩展机制测试
- 算法兴趣----两个巨大正整数相加
- setAlpha方法 设置透明度
- 20151128-03 TextView的滑动效果