//** 针对UIWebView
// 在webViewDidFinishLoad方法中
[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitUserSelect='none';"];
//** (如果是mpaas框架,在viewDidAppear中获取到webView再设置也行):
// 当前页面的WebView
UIWebView *webView = (UIWebView *)self.psdContentView;
[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitUserSelect='none';"];
网友评论