点击任意视图都会使键盘的第一响应者释放
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
[self.view endEditing:YES];
}
点击任意视图都会使键盘的第一响应者释放
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
[self.view endEditing:YES];
}
本文标题:回收键盘
本文链接:https://www.haomeiwen.com/subject/pbaelttx.html
网友评论