-2

I have an application with a UITextField and I would like to trigger a method in my view controller when the user has entered a line of text. The EditingDidEnd event is not triggered until the keyboard is dismissed and the Editing Changed event fires on every key up. Is there an event fired when the user presses Return? It seems like I have seen this behavior in first-party apps.

user1294031
  • 1
  • 1
  • 1

1 Answers1

8
- (BOOL)textFieldShouldReturn:(UITextField *)textField
bandejapaisa
  • 24,838
  • 13
  • 86
  • 110