Software engineer by profession, iOS developer by chance, freelancer by luck, Photographer by hobby and dad for my son

You are visitor:

tumblr visit counter

Catching Elephant is a theme by Andy Taylor

 

if (range.location ==0 && [string length]==0 ){//Back space
}

only possible way to check if backspace has been pressed seems to be

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
   if (range.location ==0 && [string length]==0 ){//Back space
   }
}

How to check the character is backspace (delete) « TEchnical SOlutions