Can't create reminder calendar in iOS
calendar, ios, iphone, objective-c, xcode
Solution
Not sure if you still need this but here is what i ran into.
First of all i'm pretty sure that reminders cannot be set on a calendar with a local source. I kept getting the "That account does not support reminders". Even after setting all non read only properties on the calendar before committing to the event store it still didn't work. The source needs to be calDav. Then I tried Devfly's response and it didn't work either but for a different reason. It kept fetching my gmail calendar which does not allow setting reminders (i think its actually read only for events and reminders). So i used the following code to get the actual iCloud source
for (EKSource *source in sources) {
NSLog(@"source %@",source.title);
if (source.sourceType == EKSourceTypeCalDAV && [source.title isEqualToString:@"iCloud"]) {
localSource = source;
break;
}
}
This setting this source on my new reminders calendar worked for me. hope it helps someone
Problem
I'm trying to create a reminder calendar so I can add and delete reminders. It is actually working well on the devices I use (iPhone 5/4S/4) but on certain client devices which are still iPhones - I'm getting this error below about the account not supporting reminders. Here is the workflow: ``` * Init the event store. * Request permission (check its granted for Reminder types) (iOS6+) for lower we just init. * Create a new calendar, local storage, type = Reminder * Save calendar to get its Identifier. ``` Works most of the time, this appears on some devices - ``` Error Domain=EKErrorDomain Code=24 “That account does not support reminders.” ``` Permissions are granted and checked under Settings, Privacy, Reminders. I can't find anything in the docs about the conditions under which you'd get this error. Thanks!