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
UIApplication.sharedApplication().sendAction(#selector(UIResponder.resignFirstResponder), to:nil, from:nil, forEvent:nil)