Reputation: 47
Hi I was wondering if there was an opposite to
[sender resignFirstResponder];
I was wondering because I am doing a login page with 2 UITextFields ("username" and "password") and wanted the username done button to open the keyboard to the password field.
Maybe there's something like
[sender assignFirstResponder];
Thanks in advance!
Upvotes: 3
Views: 1558
Reputation: 4789
if(textfield==nameTextfield)
{
[passwordTextField becomeFirstResponder];
}
Upvotes: 0