关闭iOS软键盘的小方法 1 [[[UIApplication sharedApplication] keyWindow] endEditing:YES]; 其实就这么一句话,之前通过遍历子View还费时费力了。