Tom
Tom

Reputation: 269

How to you select a text field

I have a table view with two rows, both of which have UITextFields in them. I also added the UITextFieldDelegate protocol and the -(BOOL)textFieldShouldReturn:(UITextField *)textField method to the table view controller file.

I can detect when the return key is pressed on the first text field, but how do I make it automatically move to the second text field?

Upvotes: 3

Views: 2408

Answers (1)

Jack Humphries
Jack Humphries

Reputation: 13267

[textField becomeFirstResponder];

Upvotes: 11

Related Questions