By clicking return in keyboard goes to next Textfield

- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
if ([textField isEqual:_companyNameTextField])
{
[_userNameTextField becomeFirstResponder];
}
else if ([textField isEqual:_userNameTextField])
{
[_passwordTextField becomeFirstResponder];
}

return true;
}
Previous
Next Post »