NSString-Helper/README.md
Giuseppe Nucifora 200b31d0a0 - Upgrade Pod
- Add Phone Number validation
2016-01-20 13:35:33 +01:00

1.4 KiB

NSString-Helper

[![CI Status](http://img.shields.io/travis/Giuseppe Nucifora/NSString-Helper.svg?style=flat)](https://travis-ci.org/Giuseppe Nucifora/NSString-Helper) Version License Platform

Usage

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

Requirements

Installation

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

pod 'NSString-Helper'

##Usage


#import <NSString-Helper/NSString+Helper.h>

NSString *str = @"testCode";

NSLog(@"%@",[NSNumber numberWithBool:[str isNumeric]]);

NSLog(@"%@",[NSNumber numberWithBool:[str isValidPhoneNumber]]);

NSLog(@"%@",[NSNumber numberWithBool:[str isValidEmail]]);

NSLog(@"%@",[NSNumber numberWithBool:[str isValidUrl]]);

NSLog(@"%@",[NSNumber numberWithBool:[str isValidTaxCode]]);


Author

Giuseppe Nucifora, me@giuseppenucifora.com

License

NSString-Helper is available under the MIT license. See the LICENSE file for more info.