title: iOS - problems with canGoForward and canGoBack in webViewDidStartLoad
body: <p>Simple concept, however it's not working. I have two buttons in my <code>UIWebView</code>, a back button, and a forward button. Back buttons calls <strong>[self.webView goBack]</strong> and forward <strong>[self.webView goForward]</strong>. </p>
  
  <p>Now I want to know basically if the <code>UIWebView</code> can go back. If so, then enable the back button, and let it go back, and the same for the forward button.</p>
  
  <pre><code>-(void)webViewDidStartLoad:(UIWebView *)webView
  {    
      if([self.webView canGoForward]) {
          [forwardArrowBtn setEnabled:YES];
      } else {
          [forwardArrowBtn setEnabled:NO];
      }
  
      if([self.webView canGoBack]) {
          [backArrowBtn setEnabled:YES];
      } else {
          [backArrowBtn setEnabled:NO];
      }
  }
  </code></pre>
  
  <p>Problem is this doesn't work on the first load.  For example: I click on a link within the <code>UIWebView</code>, it goes to the page, but the back button is still disabled and not clickable.  Not until I click on another link will the back button show enabled and start working.</p>
  
  <p>How come this doesn't work the first time you go to a different page, and only works the second time?</p>