title: Problem resigning UISearchBar's firstResponder status
body: <p>I've got a <code>UISearchBar</code> on my <code>UITableView</code> and a method <code>-finishSearching</code> which looks like this:</p>
  
  <pre><code>- (void)finishSearching {
      [overlayViewController.view removeFromSuperview];
      if ([sb isFirstResponder])
          [sb resignFirstResponder];
      myTableView.scrollEnabled = YES;
  }
  </code></pre>
  
  <p>This method gets called everytime I want to stop searching. Be it using the cancel or the search button or just tapping on the <code>UITableView</code>. The problem is that I always get an <code>EXC_BAD_ACCESS</code> when it comes to <code>[sb resignFirstResponder];</code> and I have no idea why. My goal is to implement a behavior like in Address Book where you can tap the searchBar which makes it stick to the top and put that grey overlay over the <code>UITableView</code>.</p>
  
  <p>Any suggestions on that one?</p>
  
  <p>Best<br>
  –f</p>