UIApplication.sharedApplication().keyWindow.endEditing(true)
http://blog.csdn.net/swingpyzf/article/details/17091567