访次: AmazingCounters.com 次

ios11 decisionHandler(.allow)崩溃 Thread NSInternalInconsistencyException Completion handler passed to -[WKWebViewJavascriptBridge webView:decidePolicyForNavigationAction:decisionHandler:] was

decisionHandler(.allow) was called more than once

崩溃信息:
#0 Thread
NSInternalInconsistencyException
Completion handler passed to -[WKWebViewJavascriptBridge webView:decidePolicyForNavigationAction:decisionHandler:] was called more than once
解决方案:
if WebViewJavascriptBridgeBase().isWebViewJavascriptBridgeURL(url) {
return
}
decisionHandler(.allow)

 

挥毫泼墨,书写人生篇章
posted @ 2017-09-20 14:39  JusDoit  阅读(3861)  评论(0编辑  收藏  举报