This little code snippet will let you mark invalid textfields by giving them a red border, then removing the red border once valid. It could be further adapted to go red or not after each character is typed by performing the check in UITextField's textField:shouldChangeCharactersInRange delegate method.