how to clear the text field by using the delegate functions
<pre><code>- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
    if (textField.text.length &gt;=8)
    {

        return NO; // return NO to not change text
    }
    else {
        return YES;
    }
}
</code></pre>

<p>when i am adding this method to my program, text will not be clear.
how can i clear my text field. by using the below method</p>

<pre><code>- (BOOL)textFieldShouldClear:(UITextField *)textField 
</code></pre>
