I cannot get NSUserdefaults to work, tried all i know, anyone had same issue? : I cant get nsuserdefaults to save a bool value, its really simple and people do it but it just simply will not save, tried everything i know, most recent attempt being this:
  if (_EndHide == YES) {
         NSDictionary *aProperties=[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES]forKey:@"EndHide"];

     BOOL boolValue;
         if([aProperties valueForKey:@"EndHide"]) boolValue =[[aProperties valueForKey:@"EndHide"] boolValue]; }
     else if (_EndHide == NO) {
         NSDictionary *aProperties=[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO]forKey:@"EndHide"];

         BOOL boolValue;
         if([aProperties valueForKey:@"EndHide"]) boolValue =[[aProperties valueForKey:@"EndHide"] boolValue];
     }
what happens is, i am making ios app a game for iphone, and when you dodged these well objects for period of time, you end the game and unlock a button on the start menu named endless, after the story, now i need this button to be constantly unlocked, i managed to unlock it through a scene its all working but it just wont stay unlocked, does any one have any advice to help me with this? here is the endless button configuration and bool configuration:
 @property(nonatomic, getter=isActive) bool EndHide;

 @property(nonatomic) IBOutlet UIButton *endless;

thats all the code for the buttons and bools, anyway to keep it unlocked?
i know its simple but it wont work maybe a deep bug i tried it on another more updated version of xcode but still to no avail, the issue is persistent and a real problem, i even tried switch saving that didnt work aswell..