i did a simple application with two text fields.
I need to print in the second textfield same as which is enter in first text field simultaneously.
For that i am writing the fallowing code.
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
[textfield2 setText:textfield1.text];
}
but it prints from second value.
for example text field1 = 111;
it is displaying in text field as 11;
what is the wrong.
i need what exactly enter in text field1 to text field2 simultaneously.
can any one pls help me.
Thank u in advance.