1 //退出键盘 只需一句,药到病除 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 3 4 [self.view endEditing:YES]; 5 }
1 //退出键盘 只需一句,药到病除 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 3 4 [self.view endEditing:YES]; 5 }
转载于:https://www.cnblogs.com/hkyangvip/p/3562195.html