是否可以检测到视图是否出现,因为按下了后按钮。例如,使用此层次结构 VC1 -> webViewController -> VC3
,如果在 VC3
我按下我想检测到的后退按钮 webViewController
出现。我的目标是在 shouldStartLoadWith
按下后退按钮时避免刷新页面的方法。
看答案
请在
-
- (void)webViewDidFinishLoad:(UIWebView *)webView
-
{
-
//This Check is for if still webview is Loading the page or content
-
if (webView.isLoading) {
-
NSLog(@"your webview is still loading");
-
return;
-
}
-
else {
-
//this is for when its finish loading
-
NSLog(@"your webview is loaded completely");
-
}
-
未经允许不得转载:迪欧吧_技术交流_资源分享_热点资讯_免费VPS空间 » 检测是否正在加载视图,因为按下了后按钮