I am loading some content from the web into a UIWebView, but I’d like all links to be disabled in the UIWebView. Is this possible? I could parse the text, but I’m looking for something easier.
I am loading some content from the web into a UIWebView , but I’d
Share
You can give the
UIWebViewa delegate and implement the-webView:shouldStartLoadWithRequest:navigationType:delegate method toreturn NO;(except on the initial load).That will prevent the user from viewing anything but that single page.
To provide an example requested in the comments… Start with
allowLoad=YESand then: