iOS 提示信息
来源:互联网 发布:数据交换平台软件 编辑:程序博客网 时间:2024/06/07 07:32
+(void)showNetError:(UIView *)view {
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];
hud.mode = MBProgressHUDModeText;
hud.labelText = @"网络异常,请查看网络!";
hud.margin =15.f;
hud.removeFromSuperViewOnHide = YES;
hud.userInteractionEnabled=NO;
[hud hide:YES afterDelay:3];
}
-(void) webViewDidStartLoad:(UIWebView *)webView{
[self showHUD];
}
-(void)webViewDidFinishLoad:(UIWebView *)webView{
[HUD hide:YES];
}
-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
[HUD hide:YES];
[CommenData showNetError:self.navigationController.view];
if (error.code!=-999) {
[self loadBlankPage];
}
}
-(void)showHUD{
HUD = [[MBProgressHUD alloc] initWithView:self.navigationController.view];
[self.navigationController.view addSubview:HUD];
HUD.delegate = self;
HUD.labelText = @"Loading";
HUD.userInteractionEnabled=NO;
[HUD show:YES];
// [HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES];
}
- (void)viewDidLoad {
[super viewDidLoad];
//[self.navigationController setNavigationBarHidden:NO animated:NO];
webViews.delegate=self;
NSString *string = [NSString stringWithFormat:@"%@docdetail/detail?uid=%@", BaseURLString,self.data];
NSURL *url = [NSURL URLWithString:string];
NSURLRequest * request = [NSURLRequest requestWithURL:url];
webViews.backgroundColor=[UIColor whiteColor];
webViews.scrollView.bounces=NO;
[webViews loadRequest:request];
}
- iOS 提示信息
- IOS - 会员信息提示
- IOS 信息提示1
- IOS 信息提示2
- [ios] alertview自定义提示信息【转】
- IOS 定位 提示信息一闪而过 的问题
- iOS 开发常见的错误提示信息
- iOS 提示信息被键盘遮挡解决方案
- 信息提示
- 提示信息
- 提示信息
- 提示信息
- 提示信息
- ios中提示信息的实现及自动消失
- ios中提示信息的实现及自动消失
- ios + cocos2d-x 计数统计提示相应信息
- IOS 自定义访问用户Location时的提示信息
- iOS applicationIconBadgeNumber 权限问题解决 (信息提示小红点)
- iOS webview 黑条
- Linux下百度云的Python客户端
- iOS 画一条分割线
- iOS webview中在Safari中 打开文档 进行处理
- ios顶部导航栏
- iOS 提示信息
- iOS 获取手机 唯一标识
- python 查询Mysql并将记录写入到Excel中
- iOS 获取分类 数据存储
- appdelegate 设置
- dsy 1002 轮状病毒
- rabbitmq——prefetch count
- iOS 集成下拉刷新上拉加载
- [Android]对于Android:Layout_weight的深刻理解