This is a header file with static methods for saving user defaults. It goes with: https://gist.github.com/johncblandii/7106773.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#define PREFERENCE_NAME_HERE @"someUniquePreferenceNameHere" | |
@interface Preferences : NSObject | |
#pragma mark Preferences | |
+(id)getUserPreference:(NSString*)forKey; | |
+(void)setUserPreference:(id)value forKey:(NSString*)key; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment