UIWebview在完成加载之前崩溃

时间:2017-03-24 08:12:55

标签: ios uiwebview uiwebviewdelegate

UIWebView委托方法崩溃

func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType)

在加载完成之前委托方法。

    thread #1: tid = 0x17c17, 0x000000010f7273ea libswiftFoundation.dylib`static Foundation.URLRequest._unconditionallyBridgeFromObjectiveC (Swift.Optional<__ObjC.NSURLRequest>) -> Foundation.URLRequest + 42, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x000000010f7273ea libswiftFoundation.dylib`static Foundation.URLRequest._unconditionallyBridgeFromObjectiveC (Swift.Optional<__ObjC.NSURLRequest>) -> Foundation.URLRequest + 42
    frame #1: 0x00000001075ade6b StoreFront`@objc SFDocSigningViewController.webView(UIWebView, shouldStartLoadWith : URLRequest, navigationType : UIWebViewNavigationType) -> Bool + 75 at SFDocSigningViewController.swift:0
    frame #2: 0x000000010dbcbf1e UIKit`-[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:] + 280

0 个答案:

没有答案