Men, I don't believe that this will be a problem to me. If I press a key in keyboard, the UITextField delegate trigger the function:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
if ([string lenght]==0) NSLog("Backspace was pressed");
}
But the problem is: when the text is empty and I press backspace, this function IS NOT
called. There are a way to detect the backspace was pressed in this situation?
Or I will have to send this bug to Apple?
Ps. I need this for the cursor go to previous UITextFild (if have one character and press backspace, it work)