Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. NSString *hasCompletedFirstLaunchKey = @"kHasCompletedFirstLaunchKey";
  2. NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
  3. if (![defaults objectForKey:hasCompletedFirstLaunchKey]) {
  4.  
  5. //first time code goes here
  6.  
  7. //set the key to yes
  8. [defaults setObject:@YES forKey:hasCompletedFirstLaunchKey];
  9. [defaults synchronize];
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement