Type: Bug
Summary: When I am trying to edit the password (like correct 1 last symbol) in the password field after previous password was not accepted I am taping erase on the keyboard and all previously letters are removed
I should be able to remove symbols one by one in password field after previous attempt was not accepted
Seems like it's not a bug, but feature of iOS TextField https://stackoverflow.com/questions/7305538/uitextfield-with-secure-entry-always-getting-cleared-before-editing
Also, you get same behaviour on any iOS native app using TextField with secureTextEntry=true.
@asemiankevich and @annadanchenko maybe this can be closed as per @dmitryn findings
This can be changed by overriding default behaviour of textField of iPhone, In for it!
(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
Check using:
NSString *resultString = [textField.text stringByReplacingCharactersInRange:range withString:string];
BOOL isPressedBackspaceAfterSingleSpaceSymbol = [string isEqualToString:@""] && [resultString isEqualToString:@""] && range.location == 0 && range.length == 1;
if (isPressedBackspaceAfterSingleSpaceSymbol) {
//action of backwards delete
@asemiankevich can we close here?
Most helpful comment
Seems like it's not a bug, but feature of iOS TextField https://stackoverflow.com/questions/7305538/uitextfield-with-secure-entry-always-getting-cleared-before-editing
Also, you get same behaviour on any iOS native app using TextField with secureTextEntry=true.