/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#pragma mark - #pragma mark UIWebViewDelegate - (void)webViewDidFinishLoad:(UIWebView *)webView { // Disable user selection [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitUserSelect='none';"]; // Disable callout [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitTouchCallout='none';"]; }
Comments
