tags:

views:

596

answers:

2

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
+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
That does it. Thanks.
Don Wilson