Desativar copiar e colar no UIWebView
Quase, eu tentei tudo para desabilitar copiar / colarUIWebView
mas nada funcionou comigo.
Estou carregando meuUIWebView
de uma string (array de strings) como segue:
[webView loadHTMLString:
[NSString stringWithFormat:@"%@<p class=\"paragraph\" style=\"float: right\" >%@</p>",css,[[array objectAtIndex:0] valueForKey:@"content"]] baseURL:nil ];
Eu tentei isso:
-(void)webViewDidFinishLoad:(UIWebView *)webView1{
[webView1 stringByEvaluatingJavaScriptFromString:@"document.body.style.webkitUserSelect='none';"];
}
e isto:
NSString *css =
@"<head><style><body> *{-webkit-touch-callout: none; -webkit-user-select: none;}</style> </head> </body> ";
mas nada funcionou comigo especialmente para o iOS 4.2