How to refresh a UIWebView by a quot;pull down and releasequot; gesture?(如何通过“下拉和释放刷新 UIWebView手势?)
问题描述
我知道这在 iPhone 版 Tweetie 或 xkcd iPhone 应用程序中是可能的,但他们使用的是表格.知道这是否也可以用于简单的 UIWebView
吗?我知道 this SO question 中的 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手势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何通过“下拉和释放"刷新 UIWebView手势?


基础教程推荐
- 使用 Ryzen 处理器同时运行 WSL2 和 Android Studio 2022-01-01
- LocationClient 与 LocationManager 2022-01-01
- 在 iOS 上默认是 char 签名还是 unsigned? 2022-01-01
- 固定小数的Android Money Input 2022-01-01
- :hover 状态不会在 iOS 上结束 2022-01-01
- 如何使用 YouTube API V3? 2022-01-01
- Android文本颜色不会改变颜色 2022-01-01
- Android ViewPager:在 ViewPager 中更新屏幕外但缓存的片段 2022-01-01
- “让"到底是怎么回事?关键字在 Swift 中的作用? 2022-01-01
- 如何使 UINavigationBar 背景透明? 2022-01-01