views:

104

answers:

1

hello all i am working with multiple uitextfields.i have a problem in cursor placing while changing firstResponder. i would like to do "Cursor placement in 2nd field once we entered the 3rd character in the 1st field." but the cursor stays in 3rd place.here i am restricting my first text field length to 3.

+1  A: 

This SO answer should help you. You set up notifications to be issued when the first text field state changes, firing a method that checks the text field's length. If firstTextField.text.length is equal to three characters, call [secondTextField becomeFirstResponder].

Alex Reynolds
Thanks my friend it really works...
venkat
But it is working in isolated project.When i combine this to my project its not working.why?
venkat
k its solved friend.i forget to call the awakeFromNib in my viewDidLoad.Thank u very much for the quick response
venkat
If you found this answer helpful, please press the ✔ next to it.
Emil