摘要:
NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; NSString *yourPosition = [prefs stringForKey:@"position"]; NSLog(@"Your position is: %@",yourPosition); //To set a default NSString *newPosition = @"here"; [prefs setObject: newPosition forKey:@"positio 阅读全文