我在 IB 中是静态的UITableView
,当我单击单元格时,我想隐藏键盘。什么时候isFirstResponder
好UITextField
!但是当UITextView
它不起作用时:(
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[publicationTextView resignFirstResponder];
//[self.view endEditing:YES];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}