ios11中decisionHandler(WKNavigationActionPolicyAllow)cash的问题

在下面方法里添加如下代码:

-(void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler{
    
}
WebViewJavascriptBridgeBase *base = [[WebViewJavascriptBridgeBase alloc] init];
if ([base isWebViewJavascriptBridgeURL:navigationAction.request.URL]) {
    return;
}  // Add this IF statement in my project,  don`t need modify WebViewJavascriptBridge`s source code.
decisionHandler(WKNavigationActionPolicyAllow);

你可能感兴趣的:(ios11中decisionHandler(WKNavigationActionPolicyAllow)cash的问题)