Category Archives: Disappear keyboard by clicking on keyboard return-button

Disappear keyboard by clicking on keyboard return-button

Disappear keyboard by clicking on keyboard return-button
at first of all textField have to attach Outlets->delegate with view-controller
and protocal UITextFieldDelegate add with class

class ViewController: UIViewController, UITextFieldDelegate{

func textFieldShouldReturn(textField: UITextField) -> Bool{
textField.resignFirstResponder()
return false
}
…………
………
}