开发者

How to you select a text field

开发者 https://www.devze.com 2023-03-28 19:56 出处:网络
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 ta

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?


[textField becomeFirstResponder];
0

精彩评论

暂无评论...
验证码 换一张
取 消