nicoko
nicoko

Reputation: 195

Loading url's in UIWebView

I have a UIViewController with a webView in it.

When tapping on a link, I would like to push a new controller and open the url in a new webview.

Is that possible?

Thanks in advance for your help.

Upvotes: 0

Views: 399

Answers (1)

Chris McCall
Chris McCall

Reputation: 10397

You need to implement webView:shouldStartLoadWithRequest:navigationType: (docs here), push your new controller and return NO.

I imagine that you've already got a handle on loading a URL into a WebView so I leave it at that.

Upvotes: 3

Related Questions