iOS 5 中的 UIWebView goBack() 问题
我正在显示 UIWebView 来显示移动网站。该网站使用ajax 和内部哈希导航。我有一个后退按钮可以返回历史记录。 它在 iOS 4 上以及应用程序启动后首次在 iOS 上运行良好。
离开 UIWebView 并返回后,后退按钮由于缓存而无法正常工作。 我们有什么想法可以让后台功能/历史记录在 iOS5 中保持正常工作吗?我们在网页上和本机上尝试了几种方法,但没有成功。
我们目前的状态是点击后退按钮会返回到UIWebView上的初始页面,但是会跳过中间页面。
I'm displaying a UIWebView to display a mobile website. The website uses ajax and internal hash navigation. I have a back button to go back in history.
It works fine on iOS 4 and on iOS for the first time after application launch.
After leaving the UIWebView and coming back to it, the back button does not work properly because of the caching.
Any ideas how we can get the back functionality/history keeping working in iOS5? We have tried several things on the web page, and natively, but no success.
Our current status is that clicking the back button will return to the initial page on the UIWebView, but jump over the intermediate pages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论