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.
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.
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.