开发者

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?


[textField becomeFirstResponder];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜