UIWebView: when did a page really finish loading?

后端 未结 11 1197
轮回少年
轮回少年 2020-11-29 00:09

I need to know, when a web page has completely been loaded by UIWebView. I mean, really completely, when all redirects are done and dynamically loaded content is ready. I tr

11条回答
  •  离开以前
    2020-11-29 00:43

    You could also use the accepted answer here: UIWebView - How to identify the "last" webViewDidFinishLoad message?...

    Basically, use the estimatedProgress property and when that reaches 100, the page has finished loading... See this guide for help.

    Although it does use a private framework, according to the guide there are some apps in the App Store that use it...

提交回复
热议问题