<legend id='mF0bB'><style id='mF0bB'><dir id='mF0bB'><q id='mF0bB'></q></dir></style></legend>
    • <bdo id='mF0bB'></bdo><ul id='mF0bB'></ul>

    <tfoot id='mF0bB'></tfoot>
  • <small id='mF0bB'></small><noframes id='mF0bB'>

  • <i id='mF0bB'><tr id='mF0bB'><dt id='mF0bB'><q id='mF0bB'><span id='mF0bB'><b id='mF0bB'><form id='mF0bB'><ins id='mF0bB'></ins><ul id='mF0bB'></ul><sub id='mF0bB'></sub></form><legend id='mF0bB'></legend><bdo id='mF0bB'><pre id='mF0bB'><center id='mF0bB'></center></pre></bdo></b><th id='mF0bB'></th></span></q></dt></tr></i><div id='mF0bB'><tfoot id='mF0bB'></tfoot><dl id='mF0bB'><fieldset id='mF0bB'></fieldset></dl></div>

        UIWebView - 如何识别“最后一个"webViewDidFinishLoad 消息?

        UIWebView - How to identify the quot;lastquot; webViewDidFinishLoad message?(UIWebView - 如何识别“最后一个webViewDidFinishLoad 消息?)
        • <legend id='cMTrX'><style id='cMTrX'><dir id='cMTrX'><q id='cMTrX'></q></dir></style></legend>

            <tbody id='cMTrX'></tbody>
          • <bdo id='cMTrX'></bdo><ul id='cMTrX'></ul>
            <i id='cMTrX'><tr id='cMTrX'><dt id='cMTrX'><q id='cMTrX'><span id='cMTrX'><b id='cMTrX'><form id='cMTrX'><ins id='cMTrX'></ins><ul id='cMTrX'></ul><sub id='cMTrX'></sub></form><legend id='cMTrX'></legend><bdo id='cMTrX'><pre id='cMTrX'><center id='cMTrX'></center></pre></bdo></b><th id='cMTrX'></th></span></q></dt></tr></i><div id='cMTrX'><tfoot id='cMTrX'></tfoot><dl id='cMTrX'><fieldset id='cMTrX'></fieldset></dl></div>

              <small id='cMTrX'></small><noframes id='cMTrX'>

                  <tfoot id='cMTrX'></tfoot>
                  本文介绍了UIWebView - 如何识别“最后一个"webViewDidFinishLoad 消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  webViewDidFinishLoad 消息似乎是在每次页面中的 any 对象被加载时发送的.有没有办法确定所有内容的加载都已完成?

                  The webViewDidFinishLoad message seems to be sent each time any object in the page has been loaded. Is there a way to determine that all loading of content is done?

                  推荐答案

                  有趣,我没想到它会这样工作.虽然我确定还有其他方法可以做到这一点(有没有办法从 webViewDidFinishLoad 消息中提取 URL,以便您可以看到哪个是完成加载的主页?),但我能想到的主要是使用估计进度来检查页面的进度,并在 100% 完成加载时触发你想做的任何事情,这就是我在我的应用程序中所做的.谷歌iphone webviewestimatedprogress"并点击第一个链接查看我写的关于如何做到这一点的指南.

                  Interesting, I wouldn't have thought it would work like that. Although I'm sure there are other ways to do it (is there a way to extract the URL from the webViewDidFinishLoad message so that you can see which one is the main page finishing loading?), the main thing I can think of is using the estimatedProgress to check the progress of the page and fire off whatever you want to do when it's 100% finished loading, which is what I do in my app. Google "iphone webview estimatedprogress" and click the first link for a guide I wrote on how to do this.

                  更新:

                  请在下面使用 phopkins 的答案而不是我的答案!在您的应用程序中使用私有 API 是个坏主意,您可能会被拒绝,而他的解决方案是正确的.

                  Please use phopkins' answer below instead of mine! Using private APIs in your apps is a bad idea and you will probably get rejected, and his solution is the right one.

                  这篇关于UIWebView - 如何识别“最后一个"webViewDidFinishLoad 消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  How to add and get the values from .plist in iOS(如何在 iOS 中从 .plist 添加和获取值)
                  Mobile Device Management with iPhone(使用 iPhone 进行移动设备管理)
                  <legend id='0HEOQ'><style id='0HEOQ'><dir id='0HEOQ'><q id='0HEOQ'></q></dir></style></legend>
                    <tbody id='0HEOQ'></tbody>
                    <bdo id='0HEOQ'></bdo><ul id='0HEOQ'></ul>

                        • <i id='0HEOQ'><tr id='0HEOQ'><dt id='0HEOQ'><q id='0HEOQ'><span id='0HEOQ'><b id='0HEOQ'><form id='0HEOQ'><ins id='0HEOQ'></ins><ul id='0HEOQ'></ul><sub id='0HEOQ'></sub></form><legend id='0HEOQ'></legend><bdo id='0HEOQ'><pre id='0HEOQ'><center id='0HEOQ'></center></pre></bdo></b><th id='0HEOQ'></th></span></q></dt></tr></i><div id='0HEOQ'><tfoot id='0HEOQ'></tfoot><dl id='0HEOQ'><fieldset id='0HEOQ'></fieldset></dl></div>

                            <small id='0HEOQ'></small><noframes id='0HEOQ'>

                            <tfoot id='0HEOQ'></tfoot>