Skip to content

UITextField Validation class which will help you in form validations, field validations, plug and play component just set the class and define validation type and it will validate automatically.

License

Notifications You must be signed in to change notification settings

faheemziker/FZValidationTextField

Repository files navigation

FZValidationTextField

Version License Platform

Screenshots

Image.png

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

using Interface Builder
Step 1) set the class of UITextField to FZValidationTextField


Step 2) add runtime attribute "validationType":"String" "any validation type like name,email,number," OR if you want length validations add runtime attribute "minLength":"Number" or "maxLength":"Number" or you can use both OR for custom regex you need to use "customMessage" and "customRegex" runtime attributes

Step 3) now you can check as many fields as you want to validate NSError *error=[ValidationUtilityMethods validateFields:@[nameField,emailField];



using Programatically

you can also create validation fields programmatically FZValidationTextField *emailField=[FZValidationTextField alloc]init];

now just set validationType and use it as defined above for interface builder usage.

Installation

FZValidationTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "FZValidationTextField"

Author

Faheem, faheemzikeria@gmail.com

License

FZValidationTextField is available under the MIT license. See the LICENSE file for more info.

About

UITextField Validation class which will help you in form validations, field validations, plug and play component just set the class and define validation type and it will validate automatically.

Resources

License

Stars

Watchers

Forks

Packages

No packages published