Created
August 29, 2014 15:56
-
-
Save imack/78958fa4786315cf9014 to your computer and use it in GitHub Desktop.
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
// Set the application defaults | |
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"YES" | |
forKey:@"showTutorial"]; | |
[defaults registerDefaults:appDefaults]; | |
[defaults synchronize]; |
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
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
BOOL enabled = [defaults boolForKey:@"showTutorial"]; |
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
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
BOOL enabled = [defaults boolForKey:@"showTutorial"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment