In my app I create a local calendar and put some events in it. It works on iOS8 but the same code doesn't on iOS9, even if all the metod called return valid/Ok values.
I ask for credential then when granted I create the calendar with:
self.eventStore = [[EKEventStore alloc] init]
EKCalendar *calendar = [EKCalendar calendarForEntityType:EKEntityTypeEvent eventStore:self.eventStore];
[calendar setTitle:@"My app calendar"];and add events with:
EKEvent *event = [EKEvent eventWithEventStore:self.eventStore];
// fille the event fields with data..
NSError *error = nil;
bool ret = [self.eventStore saveEvent:event span:EKSpanThisEvent commit:YES error:&error];(of course the event is filled with proper data)
as I wrote it works on iOS8 but not on iOS9. Anybody knows how to fix it?
Tnx in advance