iOS 隐藏键盘

UITapGestureRecognizer *gestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideKeyboard)];

[_tableView.tableView addGestureRecognizer:gestureRecognizer];

gestureRecognizer.cancelsTouchesInView = NO;

[gestureRecognizer release];




- (void)hideKeyboard

{

    [_contactPickerView endEditing:YES];

}


你可能感兴趣的:(iOS 隐藏键盘)