I have strange problem with NSUserDefaults
.
I would like to save NSMutableArray
.
I have this piece of code:
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setObject:selected forKey:@"markListArr"];
The problem is that the object for key "markListArr" doesn't get saved. I do this at the first run of the app. When later in the app I want to save object for that key everything works fine.
If I use any other key everything works fine. I would like to use that specific key because I already have app on app store and this is only update to the existing app.
I already tried [userDefaults synchronize]
and it doesn't work.
Any ideas what is happening?