How to refresh a UIWebView by a “pull down and release” gesture?

前端 未结 4 457
夕颜
夕颜 2020-12-25 08:52

I know that this is possible in the Tweetie for iPhone or the xkcd iPhone app, but they are using a table. Any idea if this can be done for a simple UIWebView a

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-25 09:33

    FYI, iOS 5 has officially introduced the property scrollView in UIWebView. I tested it. It worked perfectly with EGO's pull and refresh code. So the problem is no longer a problem for any iOS 5 devices.

    For downward compatibility, you still need @CedricSoubrie's code though.

提交回复
热议问题