Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force the text field to begin editing?

I'm using an alert view and the options are to change one of the values that are wrong so what I want to do is when the user selects which value he wants to change the text field corresponding to the value start editing.

like image 842
user2988343 Avatar asked Dec 03 '22 21:12

user2988343


1 Answers

If you have named a UITextField givenVin, then you could try with:

[self.givenVin becomeFirstResponder];
like image 89
dsafa Avatar answered Dec 07 '22 22:12

dsafa