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