Disabling user selection in UIWebView
问题 I have an app where I load content to a UIWebView and present this. I cannot disable user interaction completely because I want the user to be able to click links. I just need to disable user selection. I found somewhere in the Internets that you can use: document.body.style.webkitUserSelect=\'none\'; I tried inserting this as [self.contentView stringByEvaluatingJavaScriptFromString:@\"document.body.style.webkitUserSelect=\'none\';\"]; in webViewDidFinishLoad: However, it does not work. I am