title: Disable copy and paste in UIWebView
body: <p>Nearly, I had tried every thing to disable copy/paste in <code>UIWebView</code> but nothing worked with me.</p>
  
  <p>I'm loading my <code>UIWebView</code> from a string (array of strings) as follows:</p>
  
  <pre><code>[webView loadHTMLString:
  [NSString stringWithFormat:@"%@&lt;p class=\"paragraph\"  style=\"float: right\"  &gt;%@&lt;/p&gt;",css,[[array objectAtIndex:0] valueForKey:@"content"]]   baseURL:nil ];
  </code></pre>
  
  <p>I had tried this:</p>
  
  <pre><code>-(void)webViewDidFinishLoad:(UIWebView *)webView1{
  [webView1 stringByEvaluatingJavaScriptFromString:@"document.body.style.webkitUserSelect='none';"];
  }
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>  NSString *css =
  @"&lt;head&gt;&lt;style&gt;&lt;body&gt; *{-webkit-touch-callout: none; -webkit-user-select: none;}&lt;/style&gt; &lt;/head&gt;  &lt;/body&gt; ";
  </code></pre>
  
  <p>but nothing worked with me
  especially for iOS 4.2</p>