Latest 1.1.2
Homepage https://github.com/canicelebrate/AETextFieldValidator
License MIT
Platforms ios 8.0, requires ARC
Authors

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/

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

Using CocoaPods

  1. Add the pod AETextFieldValidator to your Podfile.
pod 'AETextFieldValidator'
  1. Run pod install from Terminal, then open your app’s .xcworkspace file to launch Xcode.
  2. Import the AETextFieldValidator.h umbrella header.
    • Objective-C: #import "AETextFieldValidator.h"

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!

Latest podspec

{
    "name": "AETextFieldValidator",
    "version": "1.1.2",
    "summary": "A lightweight, customizable subclass of UITextField that supports multiple regex validations.",
    "homepage": "https://github.com/canicelebrate/AETextFieldValidator",
    "license": "MIT",
    "authors": {
        "William Wang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/canicelebrate/AETextFieldValidator.git",
        "tag": "1.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "AETextFieldValidator/*.{h,m}",
    "public_header_files": "AETextFieldValidator/AETextFieldValidator.h",
    "resources": "AETextFieldValidator/*.xcassets"
}

Pin It on Pinterest

Share This