I’m trying to determine when the keyboard’s back button is pressed. When there is text in the text field, this is easy. I simply use the delegate method – (BOOL)textField:(UITextField *)aTextField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string. The problem is when the text field is empty and the back button is pressed, this method isn’t called.
Does anyone know how to get notified even when the text field is empty?
Could you default in a single space to the empty field when you begin editing (and the field is empty) so that the backspace becomes a normal event? You could remove the space when leaving the field and/or the first normal character is typed. Bit of a hack but I don’t think you’ll get to it any other way.