I’m using some toolbar buttons for going back and forwards through historic webpages in a UIWebview.
I am enabling/disabling these buttons using [webview canGoBack] called at webViewDidStartLoad. Works fine on most sites, but the problem is, on sites like twitter and facebook who use javascript/ajax requests to reload new pages canGoBack and canGoForward do not recognise a page change so my buttons don’t become active.
Is there a way round this?
Managed to cobble a solution together using webView:shouldStartLoadWithRequest:navigationType:
I enable the back button at this point. Seems to work ok.