Note that there are some explanatory texts on larger screens.

plurals
  1. POThe Event has no Calendar set error occured while adding to iCal from iPhone app?
    primarykey
    data
    text
    <p>Am new to iPhone App development. Now, am struggling with adding event to iCal from iPhone application. The problem is While adding More than 70 events(Repeated events) to iCal the events has not add in iCal. The iCal through the Error message is ["Error Domain=EKErrorDomain Code=1 "The event has no calendar set." UserInfo=0xfada510 {NSLocalizedDescription=The event has no calendar set.}”]. How to solve this problem? Can you please guide me to solve this problem? Where i'm doing wrong? Thanks is advance. </p> <p>This is my code...</p> <pre><code>EKEventStore *eventStore = [[EKEventStore alloc] init]; EKEvent *events = [EKEvent eventWithEventStore:eventStore]; events.title = @"Title"; events.notes = @"Descriptions"; events.location = @"Location"; events.startDate = DATE; events.endDate = endDates; events.availability = EKEventAvailabilityFree; [events setCalendar:[eventStore defaultCalendarForNewEvents]]; NSError *err; [eventStore saveEvent:events span:EKSpanThisEvent error:&amp;err]; NSLog(@"Error From iCal : %@", [err description]); NSString *eventID = [[NSString alloc] initWithFormat:@"%@", events.eventIdentifier]; NSLog(@"EventID : %@", eventID); </code></pre> <p>Sometimes the eventID is return null and The [err description] shows the Error ["Error Domain=EKErrorDomain Code=1 "The event has no calendar set." UserInfo=0xfada510 {NSLocalizedDescription=The event has no calendar set.}”]. How to solve this ? Any ideas? Thanks for spending your valuable time with me...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload