把View 类改成UIControl
给View加onTouchDown事件
/*
*点击空白处让键盘消失
*/
- (IBAction)onTouchDownEvent:(id)sender {
[tf1 resignFirstResponder];
[tf2 resignFirstResponder];
}
把View 类改成UIControl
给View加onTouchDown事件
/*
*点击空白处让键盘消失
*/
- (IBAction)onTouchDownEvent:(id)sender {
[tf1 resignFirstResponder];
[tf2 resignFirstResponder];
}