iOS禁用webivew的alert

-(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';"];

    

}


你可能感兴趣的:(iOS禁用webivew的alert)