Try using
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"BlackKey"];
when you save and read it using this code:
if([[NSUserDefaults standardUserDefaults] boolForKey:@"BlackKey"]) { NSLog(@"Black"); } else { NSLog(@"White"); }
or if you already did this, then it could be a bug, and there are other bugs in Xcode 6 beta too, so itβs safer to try it in Xcode 5 or later.
source share