무엇이 잘못 되었나요? Calendar.app의 Info.plist를 배열로 읽으려고했지만 배열이 없습니다. 내 코드는 다음과 같습니다.내 응용 프로그램 외부의 번들에서 plist를 읽을 수 없습니다.
NSBundle* xyzbundle = [NSBundle bundleWithPath:@"/Applications/Calendar.app/Contents"];
// Path to the plist
NSString *path = [xyzbundle pathForResource:
@"Info" ofType:@"plist"];
// Build the array from the plist
NSMutableArray *array2 = [[NSMutableArray alloc] initWithContentsOfFile:path];
// Show the string values
for (NSString *str in array2)
NSLog(@"--%@", str);
감사합니다.
앱이 캘린더와 다른 샌드 박스에 저장되므로 보안상의 이유로 호출이 실패 할 수 있습니다. – Drux
입력 해 주셔서 감사합니다. – georgeOfTheJungle