小技巧9-iOS UITextField结束编辑、收回键盘
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//点击屏幕的时候就结束编辑,方便又快捷
[self.view endEditing:YES];//结束编辑
}
著作权声明:本文由http://my.csdn.net/Nathan1987_原创,欢迎转载分享。请尊重作者劳动,转载时保留该声明和作者博客链接,谢谢