1.点击空白区域收起键盘
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
[self.view endEditing:YES];
}
2.自定义键盘
self.UITextField.inputView = myView;
1.点击空白区域收起键盘
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
[self.view endEditing:YES];
}
2.自定义键盘
self.UITextField.inputView = myView;