you can check the text by setting the UITextField delegate to your controller, and then do something like:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range { [self validateInput];
And in your "validateInput", change the background image if the validation fails.
Zoleas
source share