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/935038677b0643d1b54b273e6dce5c9e to your computer and use it in GitHub Desktop.
Save mavris/935038677b0643d1b54b273e6dce5c9e to your computer and use it in GitHub Desktop.
#import "ViewController.h"
#import "NSUserDefaults+MyUserDefaults.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults mySetObject:@"A value" forKey:@"aKey"];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment