开发者

UIWebView control when navigating within page

开发者 https://www.devze.com 2023-04-03 16:10 出处:网络
I am currently doing all my logic under webViewDidFinishLoad and I realize that when just jumping to another section (go to #section of the page), it doesn\'t reload the page therefore it doesn\'t cal

I am currently doing all my logic under webViewDidFinishLoad and I realize that when just jumping to another section (go to #section of the page), it doesn't reload the page therefore it doesn't call the webViewDidFinishLoad method. I was 开发者_如何学JAVAwondering if there's another method that gets called when I'm just jumping around the page?


I'm not sure but webView:shouldStartLoadWithRequest:navigationType: should be call, if not, you may try to jumping to another section from javascript and call objc method

http://developer.apple.com/library/mac/#documentation/AppleApplications/Conceptual/SafariJSProgTopics/Tasks/ObjCFromJavaScript.html#//apple_ref/doc/uid/30001215

0

精彩评论

暂无评论...
验证码 换一张
取 消