I am loading some content from the web into a UIWebView, but I'd like all links to be disabled in the UIWebView. Possible? I could parse the text, but I'm looking for something easier.
A:
You can do this by running a javascript snippet in your webview, -[UIWebView stringByEvaluatingJavaScriptString:].
Ben Gottlieb
2010-01-20 03:08:22
+4
A:
You can give the UIWebView
a delegate and implement the -webView:shouldStartLoadWithRequest:navigationType:
delegate method to return NO;
(except on the initial load).
That will prevent the user from viewing anything but that single page.
Dave DeLong
2010-01-20 03:12:17
That does it. Thanks.
Don Wilson
2010-01-20 04:31:25