Reputation:
I am trying to save an event on a device running ios 6.1.3 however I keep getting the error 'No calendar has been set'.
I have used the requestAccessToEntity:completion: to gey user permission however the EventStore still gives error even after user allows access.
The application runs on the simulator and on devices running ios 6.0.
Upvotes: 1
Views: 517
Reputation: 4169
I've seen the same problem on 6.1.3 and 6.1.4.
If you're trying to create the event in the completion block of requestAccessToEntity:completion:
, you can't create the event in that block if you also create the EKCalendar
.
Steps:
requestAccessToEntity:completion:
EKCalendar
inside completion blockEKEvent
using your new EKCalendar
and add itUpvotes: 1