[![CI Status](http://img.shields.io/travis/Manuel Marcos Regalado/ValidationPod.svg?style=flat)](https://travis-ci.org/Manuel Marcos Regalado/ValidationPod)
#import "Validation.h"
// Check whether a string is valid or not
if ([Validation isValidString:@"My valid String"]) {
// Do some something when the string is valid
}
// Check whether a string is valid or not and if it's empty
if ([Validation isValidString:@"My valid String" invalidIfEmptyString:YES]) {
// Do some something when the string is valid and is not empty
}
// Check whether a dictionary is valid or not
if ([Validation isValidDictionary:@{@"Hold the" : "Door"}]) {
// Do some something when the dictionary is valid
}
// Check whether an array is valid or not
if ([Validation isValidArray:@[@"Patatas Bravas", @"Paella", @"Chorizo"]]) {
// Do some something when the array is valid
}
// Check whether an email is valid or not
if ([Validation isValidEmail:@"manuel@manuelmarcos.es") {
// Do some something when the email is valid
}
ValidationPod is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ValidationPod"
Manuel Marcos Regalado, manuel@manuelmarcos.es
ValidationPod is available under the MIT license. See the LICENSE file for more info.