Created
December 11, 2012 12:25
-
-
Save romyilano/4258203 to your computer and use it in GitHub Desktop.
how to run something only the 1st time an ios app launches
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
// http://stackoverflow.com/questions/9450391/show-screen-on-first-launch-only-in-ios | |
if (![@"1" isEqualToString:[[NSUserDefaults standardUserDefaults] | |
objectForKey:@"Avalue"]]) { | |
[[NSUserDefaults standardUserDefaults] setValue:@"1" forKey:@"Avalue"]; | |
[[NSUserDefaults standardUserDefaults] synchronize]; | |
//Action here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment