I have two UITextField's in my view to let the user enter a zipcode in format 1234AA
- UITextField 1 : for the number part with number pad
- UITextField 2 : for the letters (regular keyboard)
I was able to automatically jump to the second textfield when the user has entered four digits.
I customized this method for that:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
Now my question is, is there a way to automatically jump back from textfield 2 to textfield 1 when the users presses the delete key while textfield 2 is empty.
I couldn't get this working because when textfield 2 is empty the above method isn't called.
Does anyone know a way to do this?