UIWebView with Progress Bar

后端 未结 9 1393
攒了一身酷
攒了一身酷 2020-12-08 00:47

Hi I\'m new to programming and I\'m trying to make my first app for iPhones on Xcode. My app contains of a button which opens a UIWebView when pressed and loads up a homepag

9条回答
  •  我在风中等你
    2020-12-08 01:35

    I would have added a comment, instead of adding an answer, but I don't yet have enough reputation to comment!

    Only a couple of days ago I asked almost exactly the same question. In that question I included the solution I came up with. My solution is more complicated than WolfLink's but it does track the real progress of loading the page, although it isn't 100% accurate. As WolfLink has said that's not possible. My question can be found here: Progress bar for UIWebView

    Note whichever way you do it you'll need to check the loading property of UIWebView to determine when the loading of the page is complete.

提交回复
热议问题