// 收起键盘
[textField resignFirstResponder];
// 点击编辑区以外等地方收起虚拟键盘
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
if (![TextField isExclusiveTouch]) {
[TextField resignFirstResponder];
}
}
// 收起键盘
[textField resignFirstResponder];
// 点击编辑区以外等地方收起虚拟键盘
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
if (![TextField isExclusiveTouch]) {
[TextField resignFirstResponder];
}
}