Skip to content

Instantly share code, notes, and snippets.

Last active December 26, 2015 06:19
What would you like to do?
This is a header file with static methods for saving user defaults. It goes with:
#import <Foundation/Foundation.h>
#define PREFERENCE_NAME_HERE @"someUniquePreferenceNameHere"
@interface Preferences : NSObject
#pragma mark Preferences
+(void)setUserPreference:(id)value forKey:(NSString*)key;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment