Latest 0.1.6
Homepage https://github.com/Bogdan-Stasjuk/NSString-Helpers
License MIT
Platforms ios 6.0, requires ARC
Authors

NSString-Helpers

A category on NSString for validation and manipulation.

Validation methods

+ (BOOL)isEmpty:(NSString *)string;
+ (BOOL)isUInteger:(NSString *)string;

- (BOOL)isMatchesRegExp:(NSString *)regExp;

Manipulation methods

+ (NSString *)trim:(NSString *)string;

Helper methods

- (CGFloat)heightWithFont:(UIFont *)font andWidth:(CGFloat)width;

Demo

Clone project and run it. You can find examples of usage at NSSHTestViewController.m.

Compatibility

This class has been tested back to iOS 6.0.

Installation

Cocoapods: pod 'NSString+Helpers'
Manual: Copy the NSString+Helpers folder in your project

Import header in your project. .pch is a good place ;)

#import "NSString+Helpers.h"

License

This code is released under the MIT License. See the LICENSE file for
details.

Latest podspec

{
    "name": "NSString+Helpers",
    "version": "0.1.6",
    "summary": "A category on NSString for validation and manipulation.",
    "description": "A category on NSString that extends main class by adding methods for string's validation and manipulation.",
    "homepage": "https://github.com/Bogdan-Stasjuk/NSString-Helpers",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Bogdan Stasjuk": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Bogdan-Stasjuk/NSString-Helpers.git",
        "tag": "0.1.6"
    },
    "social_media_url": "https://twitter.com/Bogdan_Stasjuk",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "NSString+Helpers/*.{h,m}",
    "public_header_files": "NSString+Helpers/*.h"
}

Pin It on Pinterest

Share This