I have an iPhone application with a settings.bundle that handles various settings for my application with Switch toggle . I set default values in my root.plist file (using the DefaultValue property) to YES but any time the application lunches on device or iOS simulator all values go NO !!! just for the first lunch worked well ! I am sure it's not because of my code :
Code:
NSUserDefaults *localeDefaults = [NSUserDefaults standardUserDefaults];
BOOL ENWORDS = [localeDefaults boolForKey:@"localetime"];
if (ENWORDS) {
// do someghing }
if (!ENWORDS) { //do something else }