Latest 1.0.0
Homepage https://github.com/nh7a/NSUserDefaults-Property
License wtfpl
Platforms ios 5.0, requires ARC
Authors

Version
Platform

Usage

NSUserDefaults* d = [NSUserDefaults standardUserDefaults];

d.my_BOOL = YES;
d.my_float = FLT_MAX;
d.my_double = DBL_MAX;
d.my_NSInteger = INT_MAX;
d.my_NSNumber = @123456789.012345;

d.my_NSString = @"no string attached";
d.my_NSArray = @[@1, @2, @3];
d.my_NSDictionary = @{@"key here" : @"value here"};

d.my_NSDate = [NSDate date];;
d.my_NSData = [NSData dataWithBytes:"123" length:4];
d.my_NSURL = [NSURL URLWithString:@"http://example.com"];

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

Installation

NSUserDefaults+Property is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "NSUserDefaults+Property"

Author

Naoki Hiroshima, [email protected]

License

NSUserDefaults+Property is available under the WTFPL. See the LICENSE file for more info.

Latest podspec

{
    "name": "NSUserDefaults+Property",
    "version": "1.0.0",
    "summary": "Property access to NSUserDefaults.",
    "homepage": "https://github.com/nh7a/NSUserDefaults-Property",
    "license": {
        "type": "wtfpl",
        "file": "LICENSE"
    },
    "authors": {
        "Naoki Hiroshima": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nh7a/NSUserDefaults-Property.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "5.0"
    },
    "requires_arc": true,
    "source_files": "*.{m,h}"
}

Pin It on Pinterest

Share This