I\'m using the UISearchBar (but not the SearchDisplayController that\'s typically used in conjunction) and I\'d like to dismiss the keyboard when you hit the \'X\' button.>
Try to avoid
- (BOOL)searchBarShouldEndEditing:(UISearchBar *)searchBar
method in your code we can solve this