title: Click events in UINavigationBar overridden by the gesture recognizer
body: <p>The question in the first place was:</p>
  
  <p>When you have a tableView how to implement that the user can tap the NavigationBar to scroll all the way to the top.</p>
  
  <p>Solution: </p>
  
  <pre><code>- (void)viewDidLoad {
      UITapGestureRecognizer* tapRecon = [[UITapGestureRecognizer alloc]
                initWithTarget:self action:@selector(navigationBarDoubleTap:)];
      tapRecon.numberOfTapsRequired = 2;
      [navController.navigationBar addGestureRecognizer:tapRecon];
      [tapRecon release];
  }
  
  - (void)navigationBarDoubleTap:(UIGestureRecognizer*)recognizer {
      [tableView setContentOffset:CGPointMake(0,0) animated:YES];
  }
  </code></pre>
  
  <p>Which works like a charm!</p>
  
  <p>But Drarok pointed out an issue:</p>
  
  <p><em>This approach is only viable if you don't have a back button, or rightBarButtonItem. Their click events are overridden by the gesture recognizer</em></p>
  
  <p>My question:</p>
  
  <p>How can I have the nice feature that my NavigationBar is clickable but still be able to use the back buttons in my app?</p>
  
  <p>So either find a different solution that doesn't override the back button or find a solution to get the back button back to working again :)</p>