title: UISearchBar Cancel Button Not Working
body: <p>I have a UISearchBar on my MKMapView that I'm going to use to search annotations.  I'm having trouble getting the cancel button to work.  I create the search bar in my viewDidLoad method like this:</p>
  
  <pre><code>UISearchBar *searchBar = [[UISearchBar alloc] init];
      searchBar.frame = CGRectMake(0, 0, 320,44);
      searchBar.showsBookmarkButton = NO;
      searchBar.showsCancelButton = YES;
      [self.view addSubview:searchBar];
  </code></pre>
  
  <p>And I've implemented this method for the cancel button:</p>
  
  <pre><code>- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar
  {
      [searchBar resignFirstResponder];
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>