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

前端 未结 4 442
夕颜
夕颜 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:24

    To tell the truth, UIWebVIew class has an undocumented getter method called _scrollView; So the code goes:

    scrollView = [webView _scrollView];

提交回复
热议问题