I need to disable the keyboard "Go" button when the following occur at the same time:
- Username textfield is empty AND
- Password textfield has focus (even if there is text already entered in the password field)
I have two text fields "txtUsername" and "txtPassword" with the following properties set:
[txtUsername setReturnKeyType:UIReturnKeyNext];
[txtPassword setReturnKeyType:UIReturnKeyGo];
[txtPassword setEnablesReturnKeyAutomatically:YES];
The "Go" button gets disabled only when the password text field is empty (doesn't matter if there is text in the username text field or not)... I'm not sure how to go about solving it when the above two conditions are met..