iOS禁止UIWebView 複製粘貼
- (void)webViewDidFinishLoad:(UIWebView *)webView { // 禁止用戶複製粘貼 [self.webView stringByEvaluatingJavaScriptFromString:@」document.documentElement.style.webkitUserSelect=’none’;」]; // 禁止用戶撥打電話 [self.webView stringByEvaluatingJavaScriptFromString:@」document.documentElement.style.webkitTouchCallout=’none’;」]; }
歡迎關注本站公眾號,獲取更多信息