This might be a simple question to someone.
How do I control the return key for the keyboard. I have one setup like this:
usernameField.returnKeyType = UIReturnKeyNext;
The other like this:
passwordField.returnKeyType = UIReturnKeyDone;
I would like different methods for each, but that could also be controlled by an if statement on the textField.tag if necessary.
Secondly, is there anyway to control (have some code run) when the close button within a UITextField is clicked. I am referring to the light x shown in the textfield once there is text within the field, that clears the field of its data. Or a way to not have this close icon within the field?