Hiding keyboard iphone sdk?
问题 I have a UISearchBar . I want the the keyboard to go away as soon as user hits search...i did try resignFirstResponder but that didn't work. any help would be appreciated - (void)viewDidLoad { [super viewDidLoad]; self.title = NSLocalizedString(@"Songs", @"Search for songs"); NSMutableArray *array = [[NSArray alloc]initWithObjects: @"Book_1", @"Book 2", @"Book _ 4", nil]; self.booksArray = array; [array release]; search.delegate=self; // Uncomment the following line to display an Edit button