iOS 隐藏键盘

[textView resignFirstResponder];
或者
[[[UIApplication sharedApplication] keyWindow] endEditing:YES];
Written on 2016-02-19