WebView历史 [英] WebView history
本文介绍了WebView历史的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
WebView中向前向后列表中添加了什么页面?
When is a page added to the forward backward list in WebView?
我有[webview setMaintainsBackForwardList:YES],但是[webview canGoBack]做几个[[webview mainFrame] loadRequest:request]。为什么呢?
I have [webview setMaintainsBackForwardList:YES], but [webview canGoBack] still returns NO after I do a couple of [[webview mainFrame] loadRequest:request]. Why is that?
推荐答案
我相信条目只会在用户导航时放到此列表中。如果要以编程方式将项目添加到此列表,您需要向webView的backForwardList发送 addItem:
。
I believe entries are only put onto this list when the user navigates. If you want to add items to this list programmatically, you'll need to send addItem:
to the webView's backForwardList.
这篇关于WebView历史的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文