How to specify exactly the last time webViewDidFinishLoad for UIWebView get called?

☆樱花仙子☆ 提交于 2019-12-08 06:23:58

问题


I've read the previous post for this question, UIWebView - How to identify the “last” webViewDidFinishLoad message? but in fact I didn't get the answer very much. what I need is to execute a script on the webView but after it finishes its loading completely. I've tried to count the frames inside the HTML by reading it to a string and then counting them then loading the string I've read to the UIWebView, and counting the times webViewDidFinishLoad gets called but that's didn't work. so is there a way to accomplish that, or can any body tell me when webViewDidFinishLoad gets called exactly so I can count something and use it instead of the frames.

thank you in advance.

来源:https://stackoverflow.com/questions/3917474/how-to-specify-exactly-the-last-time-webviewdidfinishload-for-uiwebview-get-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!