In Xcode 6 : NSUserDefaults does not work in device simulators (iPhone 5, iPhone 6, etc., simulators).
If you test on real devices, it works great. Does anyone know how to send this information to Apple? I tried to contact Apple, but I did not receive a response.
I can not test the real iPhone6 or iPhone6 Plus, because in my country is not yet.
My code (example) that works great on devices:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSString *appTheme = [defaults objectForKey:@"theme_preference"]; if ([appTheme isEqualToString:@"color0"]) { } else { }
I guess I did not express myself clearly.
The user in the "iPhone o iPad Settings" must change the application settings.
Settings are made using "Root.plist" in "Settings.bundle".
That is, I'm trying to check if the user is changing application settings. But in the source code I do not see these changes. I always talk about device simulators (Xcode6)

ios8 xcode6 nsuserdefaults
Markus
source share