1
我試圖從我的iPhone(iOS 6.1)獲取日曆標題,但沒有發現裏面。 如何從iOS 6.1獲取日曆標題?請幫幫我。事件在iOS 6.1中添加所有日曆?
感謝Adnvance
我嘗試這樣做:
EKEventStore *store = [[EKEventStore alloc]init];
EKEvent *event = [EKEvent eventWithEventStore:store];
NSArray *list = [[NSArray alloc]init];
list = [[store calendarsForEntityType:EKEntityTypeEvent] copy];
// Calendars deprecate in iOs 6.1
// Retain deprecate, so use "copy"
NSLog(@"list: %d",[list count]);
for(EKCalendar *calendar in list)
{
NSLog(@"list: %@",calendar.title);
}