I have little experience in Objective-C. I want to hide the keyboard for a text field using the Swift programming language.
I also tried this
func te
Just override the UIViewController method called "touchesBegan" and set endEditing to true. Just like this:
override func touchesBegan(touches: NSSet!, withEvent event: UIEvent!) { self.view.endEditing(true) }