I have a view with a UITextField which should hide the keyboard when return is pressed.
My function is this:
- (BOOL)textFieldShouldReturn:(UITextFie
Swift 3.0
func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool { if textField == addressTextField { textField.resignFirstResponder() return false } return true }