I have 2 textfields, for login id and password.
When user taps on email id, they keyboard type is email and for password, its default.
They done button of both the keyboards, dismisses the keyboard.
WHat i am trying to do is, once user fills both the id and password, they DONE button should be changed to “LOGIN” and i can perform selector method on it to login.
Can this be doable?
Thanks
If you are using standard iOS keyboard, then the only available return key type is
To detect the keychange on the keyboards you can register for name:UITextFieldTextDidChangeNotification . Lets say your textfield are emailTextField and passwordTextField.
First you register the notification, the detect the text input
When the return key tapped, it’ll call textfield delegate. You can do something like this: