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
You can also do like this: add event "Did end on exit" from connections inspector of your TextField and connect it to method from relevant ViewController
In my example I connect it to method called 'ended'
declare sender as UITextField and then call sender.resignFirstResponder(); Like this:
@IBAction func ended (sender: UITextField){ sender.resignFirstResponder(); }