WKWebView


Gerriet M. Denkmann
 

The documentation says:
“In apps that run in macOS 10 and later, use the WKWebView class instead of using WebView.”
“In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWebView.”

WebView has:
webView:decidePolicyForNavigationAction:decisionHandler:

and UIWebView has:
webView:shouldStartLoadWithRequest:navigationType:

what would the equivalent in WKWebView be?

WKNavigationDelegate has:
webView:decidePolicyForNavigationAction:decisionHandler:

but this is only called once (after loadHTMLString:baseURL:) with navigationType = WKNavigationTypeOther;
never when I click on a link.

Gerriet.

Join cocoa@apple-dev.groups.io to automatically receive all group messages.