What is the correct filepath to store a plist on the device.
I read this in a tutorial
which will work for the computer, would like to know the file location for the device.
// write xml representation of dictionary to a file
[dictionary writeToFile:@"/Users/henrik/Sites/foo.plist" atomically:NO];
I currently try to write to the filepath that I read from
NSString *filepath = [[NSBundle mainBundle]
pathForResource:@"UserAdded" ofType:@"plist"];
userAddedQuotes = [[NSMutableArray alloc] initWithContentsOfFile:filepath];
as follows
[userAddedQuotes addObject:temp];
[userAddedQuotes writeToFile:filepath atomically: NO];
The array gets updated in the runtime, but doesnt get saved to the plist.