I’m having trouble getting some informations written in my .plist, and NSUser Defaults Files.
For the .plist i’ve already posted but, nothing seems to be wrong:
How to update an array set into the .plist dictionary
And for the NSUser Default, i’m doing something like this:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSMutableArray *userSettings = [[NSMutableArray alloc]initWithArray:[[defaults objectForKey:@"userSettings"]mutableCopy]];
[userSettings addObject:userSettingsArray];//adding an array into my userSettingsArray (declared higher in the code)
[defaults setValue:userSettings forKey:@"userSettings"];
[defaults synchronize];
I was wandering, is there any option in Xcode allowing , or not, the user to write into the app folders?
I’m a little stuck here
Thank you for your help,
Tim
I found the solution to my problem:
I entered the datas from the IBOutlet like this
instead of this:
so the datas were wrong, and so and so…..
Thank you for you help, learned a lot from those .plist and NSUserDefault