How can I programmatically assign focus to a specific UITextField in a view? I have several fields and on view display, I’d like to put the cursor on a specific field, not the first one at top.
Share
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.
Try doing this in
viewWillAppear:By making the field the first responder, it have focus and the keyboard will be displayed.