iOS webView去掉系统长按方法

方法 1、webView修改js

-(void)webViewDidFinishLoad:(UIWebView *)webView {

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

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

}

你可能感兴趣的:(iOS webView去掉系统长按方法)