webViewDidFinishLoad() does not appear to be running in Swift

后端 未结 1 1054
轻奢々
轻奢々 2021-01-25 20:42

I have a view controller for a webview, setup through KINWebBrowser.

I\'ve tried several ways to get these methods to execute:

func webV         


        
相关标签:
1条回答
  • 2021-01-25 21:30

    Those are the UIWebView delegate methods, however from the KINWebBrowser page you should probably be using the KINWebBrowserDelegate protocol

    • (void)webBrowser:(KINWebBrowserViewController *)webBrowser didStartLoadingURL:(NSURL *)URL;
    • (void)webBrowser:(KINWebBrowserViewController *)webBrowser didFinishLoadingURL:(NSURL *)URL;
    • (void)webBrowser:(KINWebBrowserViewController *)webBrowser didFailToLoadURL:(NSURL *)URL withError:(NSError *)error;
    0 讨论(0)
提交回复
热议问题