State of canGoForward, canGoBack while loading


(This is related to the second challenge)

For some reason, the state of canGoForward, canGoBack only seems to be correct once the UIWebView has finished loading.

If I put an NSLog in the webViewDidStartLoad, the canGoForward/Back are correct EXCEPT when we are at the first page (can’t go back) and click on a link. In this case, in webViewDidStartLoad says we can go forward but not back. Finally, when webViewDidFinishLoad occurs, we find correctly that we can go back but not forward.

(using iOS 5.0 iPad simulator)

I can’t find this anywhere searching docs and other forums…