标签: objective-c uiwebview
如何检查用户点击和页面何时加载?委派 - (void)webViewDidFinishLoad:(UIWebView *)webView 不工作..
- (void)webViewDidFinishLoad:(UIWebView *)webView
答案 0 :(得分:1)
当用户点击链接时,UIWebView的委托会发送消息webView:shouldStartLoadWithRequest:navigationType:,当内容加载完毕后,会发送消息webViewDidFinishLoad:。
UIWebView
webView:shouldStartLoadWithRequest:navigationType:
webViewDidFinishLoad:
确保您已在网络视图中设置delegate属性。
delegate