Skip to content

Instantly share code, notes, and snippets.

@rcerrejon
Last active April 5, 2017 15:24
Show Gist options
  • Save rcerrejon/6989220 to your computer and use it in GitHub Desktop.
Save rcerrejon/6989220 to your computer and use it in GitHub Desktop.
NSUserDefaults template in Objective-C
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:variable forKey:@"myVar"];
[defaults synchronize];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment