ios 9 local calendar not created

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

I have the same issue, did you ever find a solution?

I am having the same problem. When using the XCode simulator I have no problem creating an EKCalander against the EKSourceType.Local source. However, when I try to test the code on my iPhone - that is running iOS 9 - it does not work.


I am able to create an EKCalendar on my iPhone against the EKSourceType.CalDav source when iCloud is turned on. However, I notice that when you turn iCloud off I am not able to manually add a calendar via the Calendar app. Are either of you having this same issue too?


It seems like when iCloud is on you have to create EKCalendars against the EKSourceType.CalDav source. I wonder why iOS no seems to no longer allow you to add a local calendar.

Did you ever figure out what the problem was il Malvagio Dottor Prosciutto?

ios 9 local calendar not created
 
 
Q