Chintan-Dave / CRDValidation

General Purpos Objective-C Validation Library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<title></title>

CRDValidation

 

This is a text validation library for Objective - C.

All most every business application need text based input validation. Most og the validation are common between appication like E-Mail. We generaly copy and paste code from internet or from our own old project.

But I think a library can make it easy to work. So I create one and share here.

This Library can work in two way.

  • Manualy with code (Custome)
  • As a category of UITextField.

If you want to perform siple validation for UITextField only than go for second approch but if you want some custom validation or you want validation of text which is somewhere else than UITextField lin NSString or UILabel than go for first approch. If you want validation for NSDate than also you can apply first Approch.

I have created a simple demo to show how to use UITextField category.

   

This Library Support Following Validation:

UITextField Validation:

  1. Blank
  2. Email
  3. Number
  4. Integer
  5. Alphabet without space
  6. Alphabet with space
  7. Alpha numeric without space
  8. Alpha numeric with space
  9. Regular Expression

Additional Custom validation:

  • Min and max length validation
  • Validation on date
    • Date before other date
    • Date after other date
    • date between two date

How to use it:

Add This four file in your project if you want UITextField. otherwise just add first two file.

  1. CRDValidation.h
  2. CRDValidation.m
  3. UITextField+CRDValidation.h
  4. UITextField+CRDValidation.m

Import .h files as u require and start wirking.

About

General Purpos Objective-C Validation Library.


Languages

Language:Objective-C 100.0%