I have 2 text fields, one is for usrname and the other one is for password.
Question : after entering a username and hit next from the keyboard, how can I jump to the password field for typing a password..
Any comments are welcomed here.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to implement the UITextFieldDelegate protocol and use the
becomeFirstRespondermethod to change the focus to the next textField.The method you need to implement on the delegate is
textFieldShouldReturn:.This is a sample implementation I have:
You can set the implementing class delegate for both of your text fields.
Hope it helps!