Heey,
I'm writing some data to a plist file but it fails on the device but not in the simulator. Im kinda lost, dont know where to look for a solution.
This is my code:
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
[dict setObject:nameField.text forKey:@"name"];
[dict setObject:emailField.text forKey:@"email"];
BOOL ret = [dict writeToFile:[[NSString alloc] initWithString:[[NSBundle mainBundle] pathForResource:@"settings" ofType:@"plist"]] atomically:YES];
NSLog(@"%d",ret);
[dict release];
The log returns 0 on the device, but 1 in the simulator.
Can somebody help me out. Thanks