iOS禁用webivew的alert

原文链接:https://yq.aliyun.com/articles/36643

-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{

    

    [self finishLoad];

    [self webViewLoading];

}

- (void)finishLoad

{

    [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];

    [self.hud stopAnimationWithLoadText:@"" withType:YES];//加载成功


禁用、、、、、、

    [self.webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitUserSelect='none';"];

    [self.webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitTouchCallout='none';"];

    

}


展开阅读全文
博主设置当前文章不允许评论。

没有更多推荐了,返回首页