UIWebView webViewDidLoadFinish method not called

后端 未结 6 940
南笙
南笙 2021-02-05 22:50

I\'ve been playing around with web views in swift this evening, but have run into a bit of an issue.

For some reason I\'m not able to get the webViewDidStartLoad or webV

6条回答
  •  失恋的感觉
    2021-02-05 23:01

    Try this!

    var req = NSURLRequest(URL: url)
    webView.delegate = self
    webView.loadRequest(req)
    

提交回复
热议问题