problem while validation text field after 
<p>i need to validate a textfield input that allows two digits after a <code>.</code>.
Eg: if i enter 2.333 it wont allow if can able to allow 2.33 only.   </p>

<p>for that i use this code  </p>

<pre><code>- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {

    NSArray *sep = [textField.text componentsSeparatedByString:@"."];
    if([sep count]==2)
    {
        NSString *sepStr=[NSString stringWithFormat:@"%@",[sep objectAtIndex:1]];
        return !([sepStr length]=2);
    }
}
</code></pre>

<p>if i use <code>return !([sepStr length]=2)</code> it works fine that wont allow to enter next value.</p>

<p>But if i remove value also text field wont allow any modifications.
i mean there is no user interaction.
It can't able to edit.
can any one please help me.
How can i correct this.
Thank u in advance. </p>
