AETextFieldValidator 1.1.2

AETextFieldValidator 1.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2016

Maintained by William Wang.



  • By
  • William Wang

Inspired by the project TextFieldValidator and most of logic code comes from there AETetFieldValidator is a lightweight, customizable subclass of UITextField that supports multiple regex validations and provides a simple UI to provide validation feedback.

See the original blog post of TextFieldValidator for details: https://dhawaldawar.wordpress.com/2014/06/11/uitextfield-validation-ios/

AETextFieldValidator

A lightweight, customizable subclass of UITextField that supports multiple regex validations and provides a simple UI to provide validation feedback. And rewrite to support appearance

AETextFieldValidator

Setup

customizable

     [[TextFieldValidator appearance] setPopUpColor:[UIColor orangeColor]];
     UIImage* img = [UIImage imageNamed:@"customError"];
     [[TextFieldValidator appearance] setErrorImg:img];

     [[TextFieldValidator appearance] setPopUpShadowColor:[UIColor darkGrayColor]];
     [[TextFieldValidator appearance] setPopUpShadowRadius:3.0f];

     [[TextFieldValidator appearance] setPopUpFont:[UIFont fontWithName:kFontName size:25]];
     [[TextFieldValidator appearance] setMandatoryInvalidMsg:@"This field is required"];
     [[TextFieldValidator appearance] setPopUpCornerRadius:5.0f];

That's it - now go to design a form with AETextFieldValidator!