how can i display simultaneously values in one text field to another text field
<p>i did a simple application with two text fields.</p>

<p>I need to print in the second textfield  same as which is enter in first text field simultaneously.</p>

<p>For that i am writing the fallowing code.</p>

<pre><code>- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{ 
   [textfield2 setText:textfield1.text]; 

}
</code></pre>

<p>but it prints from second value.</p>

<p>for example text field1 = 111;</p>

<p>it is displaying in text field as 11;</p>

<p>what is the wrong.</p>

<p>i need what exactly enter in text field1 to text field2 simultaneously.</p>

<p>can any one pls help me.</p>

<p>Thank u in advance.</p>
