// 触摸背景关闭软键盘 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [super touchesBegan:touches withEvent:event]; [self.view endEditing:YES]; }
// 触摸背景关闭软键盘 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [super touchesBegan:touches withEvent:event]; [self.view endEditing:YES]; }
转载于:https://www.cnblogs.com/joesen/p/3630891.html