このコード スニペットは iPhone シミュレーターでは機能しますが、デバイスでは機能しませんが、ディスク上のドキュメント ディレクトリに書き込まれたファイルを探しています。
NSString *documentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *filepath = [documentsDirectory stringByAppendingString:@"notificationScheduled.plist"];
BOOL fileExists = [[NSFileManager defaultManager] fileExistsAtPath:filepath];
if (fileExists) {
NSMutableArray *array = [NSMutableArray arrayWithContentsOfFile:filepath];
NSLog(@"%@", array);
[array addObject:date];
[array writeToFile:filepath atomically:YES];
} else {
NSMutableArray *array = [NSMutableArray arrayWithObject:date];
[array writeToFile:filepath atomically:YES];
}