如何通过“下拉和释放”来刷新UIWebView。手势? [英] How to refresh a UIWebView by a "pull down and release" gesture?
问题描述
我知道这可以在Tweetie for iPhone或xkcd iPhone应用程序中使用,但他们正在使用表格。不知道是否可以对简单的 UIWebView
进行此操作?我知道这个问题中的Javascript建议,但是如何在本地制作呢?
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
as well? I'm aware of the Javascript suggestions in this SO question, but what about making that natively?
推荐答案
仅供参考,iOS 5已经在UIWebView中正式引入了属性 scrollView 。我测试了它。它与EGO的拉取和刷新代码完美配合。所以问题不再是任何iOS 5设备的问题。
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.
为了向下兼容,你仍然需要@ CedricSoubrie的代码。
For downward compatibility, you still need @CedricSoubrie's code though.
这篇关于如何通过“下拉和释放”来刷新UIWebView。手势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!