Is there a way to programatically remove the selection box of text which the user has selection in a UIWebView?
A:
Sure... using JavaScript in the HTML document the UIWebView is displaying.
I suspect that's not what you mean by "programmatically", though...
Dan Ray
2010-09-15 20:59:02
A:
NSString * jsCallBack = @"window.getSelection().removeAllRanges();";
[webView stringByEvaluatingJavaScriptFromString:jsCallBack];
Aaron Saunders
2010-09-15 21:14:30
Didn't work - I want to remove the selection with the two handles which appears in the view, but it remains...
LK
2010-09-15 21:36:10
huh? "two handles"
Aaron Saunders
2010-09-15 23:23:39
when you select text on the ipad/iphone you have the selection box with the two circles you may drag to resize it - I want to be able to remove this selection
LK
2010-09-16 04:02:25