• Blog
  • Projects
  • Resume
  • Contact
Menu

Kyle Clegg

356 West 400 North
Salt Lake City, UT, 84103
3609773739
mobile app developer

Kyle Clegg

  • Blog
  • Projects
  • Resume
  • Contact

Marking invalid UITextFields red in iOS

January 31, 2013 Kyle Clegg
redbordertextfields

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.

https://gist.github.com/4687811#file-gistfile1-m

In Mobile, Programming Tags iOS
← Ditching mySQLNexus 4 Impressions →
profile for Kyle Clegg at Stack Overflow, Q&A for professional and enthusiast programmers

INSTAGRAM

Found my new place of residence for the summer
Found my new place of residence for the summer