Skip to content

JeanVinge/NSUserDefaults-Helper

Repository files navigation

Get Started

This pod helps to store and load easily custom objects with NSUserDefaults

PodFile

platform :ios, '8.0'
pod "NSUserDefaults+Helper"

Example

Store in NSUserDefaults

NSString *string = @"test";
[NSUserDefaults saveCustomObject:string key:@"example"];

Load from NSUserDefaults

NSString *stringLoaded = (NSString *)[NSUserDefaults loadCustomObjectWithKey:@"example"];