Skip to content

Instantly share code, notes, and snippets.

@mavris
Last active July 2, 2017 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mavris/d0c0857643f04b79d0b6830aa277edf5 to your computer and use it in GitHub Desktop.
Save mavris/d0c0857643f04b79d0b6830aa277edf5 to your computer and use it in GitHub Desktop.
#import "NSUserDefaults+MyUserDefaults.h"
@implementation NSUserDefaults (MyUserDefaults)
-(void)mySetObject:(id)value forKey:(NSString *)defaultName {
[self setObject:value forKey:defaultName];
NSLog(@"Set object %@ for key %@",value,defaultName);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment