TextFieldDelegateProtocol is the protocol provided when adding a text field in the screen. All TextFieldDelegateProtocol's functions are optional. 

  • textField:shouldChangeCharactersInRangeLocation:andRange: Returns if the specified text should be changed.
  • textFieldDidBeginEditing: It is invoked when editing begins in the specified text field.
  • textFieldDidEndEditing: It is invoked when editing stopped for the specified text field.
  • textFieldShouldBeginEditing: Returns if editing should begin in the specified text field.
  • textFieldShouldClear: Returns if the text field’s current contents should be removed.
  • textFieldShouldEndEditing: Returns if editing should stop in the specified text field.
  • textFieldFieldShouldReturn: Returns if the text field should process the pressing of the return button.
Did this answer your question?