This is my code:
NSString *plistDataPath = [[NSBundle mainBundle] pathForResource:@"CustomServices" ofType:@"plist"];
NSMutableArray *CustomServicesArray = [[NSMutableArray alloc] initWithObjects:
textboxValues[0],textboxValues[1],textboxValues[2],textboxValues[3],
textboxValues[4],textboxValues[5],textboxValues[6],textboxValues[7],
textboxValues[8],textboxValues[9],textboxValues[10],textboxValues[11],
textboxValues[12],textboxValues[13],textboxValues[14],textboxValues[15],
textboxValues[16],textboxValues[17],textboxValues[18],textboxValues[19],
textboxValues[20],textboxValues[21],textboxValues[22],textboxValues[23],
nil];
if(![CustomServicesArray writeToFile:plistDataPath atomically:NO]) {
NSLog(@"Array wasn't saved properly");
};
The CustomServicesArray has valid data in it, and there was no error returned from the writeToFile. I have looked at the file, which has yesterday's creation date, but it is empty; apparently it is not overwriting the file today. Am I supposed to delete the specific plist file first?