I use some toolbar buttons to go back and forth through historical web pages in UIWebview.

I turn on / off these buttons with the help [webview canGoBack]called in webViewDidStartLoad. It works fine on most sites, but the problem is that on sites like Twitter and facebook that use javascript / ajax requests to reload new pages canGoBackand canGoForwarddo not recognize the page change so that my buttons do not activate.
Is there any way around this?
source
share