views:

116

answers:

1

Hello,

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.

+3  A: 

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, but for posterity, here's the docs on how to do that.

Chris McCall
Thank you Chris. It works!
nicoko
Awesome, glad I could help.
Chris McCall