title: Back Button on UIWebView
body: <p>I'm trying to figure out how to create a back button that allows the user to go back one page. I read through Apple's Docs (which still go way over my head) and found out that I need to setup the <code>canGoBack</code> and <code>goBack</code>'s. I have tried this, but for some reason it is not working. My <code>UIWebView</code> is named <code>viewWeb</code>, and I created and attached an outlet to my Back button, named <code>backButton</code>, and also tagged it as 1. Here is my code that I wrote in the View Controller:</p>
  
  <pre><code>// Back button:
  -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
      if (buttonIndex == 1) {
  
          [_backButton addTarget:_viewWeb
                           action:@selector(goBack)
                 forControlEvents:UIControlEventTouchDown];
  
          if ([_viewWeb canGoBack]) {
  
              NSLog(@"Back button pressed.");
              [_viewWeb goBack];
          }
      }
  
      else return;
  }
  </code></pre>
  
  <p>Does anyone know what I need to change / add to get this working?</p>