Reputation: 195
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
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