I created NSMutableArray for EKCalendars, which uses my application. The first time I start, I import all calendars from EventStore, but I exclude the Birthdays calendar and the default calendar, leaving only user-created calendars. However, the problem is that there is only a birthday calendar and a default calendar. Here is what I still have ...
for (int i = 0; i < theEventStore.calendars.count; i++) { EKCalendar *c = [theEventStore.calendars objectAtIndex:i]; if (c.type != EKCalendarTypeBirthday && c.type != EKCalendarTypeSubscription) { if (c.type == EKCalendarTypeLocal && [c.title isEqualToString:@"Calendar"]) { NSLog(@"Removed Calendar: %@", c); } else { [self.calendarLst addObject:c]; NSLog(@"Added Calendar: %@", c); } } }
I'm a little deadlocked. Any help would be appreciated.
sobox studio
source share