
UITapGestureRecognizer * tapGesture = [[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(dismissKeyBoard)]; [self.tableView addGestureRecognizer:tapGesture];
UITapGestureRecognizer * tapGesture = [[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(dismissKeyBoard)]; [self.tableView addGestureRecognizer:tapGesture];
遇见资源网 objective-c 在聊天应用当中,可能会需要在触摸tableView时收起键盘(如QQ)可以给tableView添加手势来解决这个问题 http://www.ox520.com/14908.html