views:

184

answers:

1

hi,

i am developing an application where i am creating some UITextField programatically, and i allow maximum 1 character in the text field .

which is working perfectly.

But after writing the charcter user have to again click in the next textfield to appear the keyboard

So, now i want when after writing 1 character the cursor should automatically move to next textfield .

How can i do that?

+3  A: 

Catch the delegate that informs you your textfield has been changed. Check if the new length is 1. If it is, call becomeFirstResponder on the next field.

Sastira