im using my iphone to run my app.The strange thing is the same code i put it in my another xcode project ,that's alright. But this project it will save my default data correctly only if i stay in the app. once i close it ,it will disappear
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
[def setValue:@"1" forKey:@"pushisYes"];
NSString *isY = [[NSUserDefaults standardUserDefaults] objectForKey:@"pushisYes"];
Topic:
App & System Services
SubTopic:
General
Tags: