views:

144

answers:

2

Hi all,

I want to access/clear the back forward list as if the UIWebView is new again. Is there any public api or workaround to do this?

I've tried

while ([webview canGoback]) {
    [webview goBack];
}

but that will freeze the device (simulator too)

Thanks!

A: 

I would imagine you can break the history by manually loading some HTML...

Something like:

[webview loadHTMLString:@"" baseURL:@""];
collin
Hi Colin, thank you for your reply. Sadly, I would still need to go back to the first page in the list to do this. Even then, it will only override the pages after the first one. Leaving the fist one there
zsniper