1、关闭键盘
[[[UIApplication sharedApplication] keyWindow] endEditing:YES];
2、单击非编辑框,键盘消失
把view控件的Custom Class的值UIView改为UIControl,在处理Touch单击事件接收方法中添加:[[[UIApplication sharedApplication] keyWindow] endEditing:YES];