NSUserDefaults保存的数据

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

[defaults setObject:@"111" forKey:@"myTest"];

[defaults synchronize];

NSString *testStr = [defaults objectForKey:@"myTest"];

NSLog(@"testStr is: %@",testStr);


if (![[NSUserDefaults standardUserDefaults] boolForKey:@"firstLaunch"]) {

    

         if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone ) {

             guideViewController = [[GuideViewController alloc] init];

             [self.window addSubview:guideViewController.view];

         }

     }

http://blog.csdn.net/hope_worker/article/details/7602967

你可能感兴趣的:(NSUserDefaults)