Latest 1.1.0
Homepage https://github.com/Bogdan-Stasjuk/NSNumber-Helper
License MIT
Platforms ios 6.0, requires ARC
Authors

NSNumber-Helper

A cetogory on NSNumber that extends standard Foundation class functionality.

Validation methods

+ (BOOL)isInteger:(NSNumber *)number;
+ (BOOL)isDouble:(NSNumber *)number;

Manipulation methods

- (NSString *)doubleToStringWithFormat:(NSNumberFormat)format;
- (NSString *)currencyStyleWithLocale:(NSLocale *)locale;

Enums

typedef NS_ENUM(NSUInteger, NSNumberFormat) {
    NSNumberFormatP2f,
    NSNumberFormatP3f,
};

Demo

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

Compatibility

This class has been tested back to iOS 6.0.

Installation

Cocoapods: pod 'NSNumber+Helper'
Manual: Copy the NSNumber+Helper folder in your project

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

#import "NSNumber+Helper.h"

License

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

Latest podspec

{
    "name": "NSNumber+Helper",
    "version": "1.1.0",
    "summary": "A category on NSNumber",
    "description": "A cetogory on NSNumber that extends standard Foundation class functionality",
    "homepage": "https://github.com/Bogdan-Stasjuk/NSNumber-Helper",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Bogdan Stasjuk": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Bogdan-Stasjuk/NSNumber-Helper.git",
        "tag": "1.1.0"
    },
    "social_media_url": "https://twitter.com/Bogdan_Stasjuk",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "NSNumber+Helper/*.{h,m}",
    "public_header_files": "NSNumber+Helper/*.h"
}

Pin It on Pinterest

Share This