iPhone SDK: UISearchBar: searchBarTextDidEndEditing not firing
问题 I'm implementing a search bar on my table, which should be pretty straight forward. I've got these: - (void)searchBarTextDidBeginEditing:(UISearchBar *)theSearchBar { NSLog(@"searchBarTextDidBeginEditing"); } - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { NSLog(@"The search text is: %@", searchText); } - (void)searchBarTextDidEndEditing:(UISearchBar *)theSearchBar { NSLog(@"searchBarTextDidEndEditing"); [theSearchBar resignFirstResponder]; } And