//方法一:关闭整个系统的键盘
[[[UIApplication sharedApplication] keyWindow] endEditing:YES];
//方法二:关闭当前页的键盘
[[self findFirstResponderBeneathView:self] resignFirstResponder];
iOS 之 关闭键盘
原文:http://www.cnblogs.com/SimonGao/p/5062662.html