Add events to iCal from iPhone App, The event has no calendar set Error?
I have one problem while adding multiple events more than 70 events repeatedly again and again to the iCal from our iPhone application. First 20 events add to iCal without any issues. After the balance events not adding to iCal. The error log from the iCal shows the given Error, ["Error Domain=EKErrorDomain Code=1 "The event has no calendar set." UserInfo=0xfada510 {NSLocalizedDescription=The event has no calendar set.}”]. Below i have attached my code. Please help me to solve this problem. int count = [eventsArray Count]; for(int i=0;i<count;i++) { EKEventStore *eventStore = [[EKEventStore