//方法一:关闭整个系统的键盘
[[[UIApplication sharedApplication] keyWindow] endEditing:YES];
//方法二:关闭当前页的键盘
[[self findFirstResponderBeneathView:self] resignFirstResponder];
2022-09-24 15:14:48
//方法一:关闭整个系统的键盘
[[[UIApplication sharedApplication] keyWindow] endEditing:YES];
//方法二:关闭当前页的键盘
[[self findFirstResponderBeneathView:self] resignFirstResponder];