David Lin
David Lin

Reputation: 5638

WebView history

When is a page added to the forward backward list in WebView?

I have [webview setMaintainsBackForwardList:YES], but [webview canGoBack] still returns NO after I do a couple of [[webview mainFrame] loadRequest:request]. Why is that?

Upvotes: 3

Views: 2309

Answers (1)

Rob Napier
Rob Napier

Reputation: 299455

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.

Upvotes: 4

Related Questions