Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7028753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:26:58+00:00 2026-05-28T00:26:58+00:00

Am new to iPhone App development. Now, am struggling with adding event to iCal

  • 0

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.

This is my 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:&err];
NSLog(@"Error From iCal : %@", [err description]);

NSString *eventID = [[NSString alloc] initWithFormat:@"%@", events.eventIdentifier];
NSLog(@"EventID : %@", eventID);

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:26:59+00:00Added an answer on May 28, 2026 at 12:26 am

    Don’t know if you’ve solved this problem in the meantime but if not, it looks like you need to find and assign a calendar first such as below:

    EKEventStore *eventStore = [[EKEventStore alloc] init];
    
    EKCalendar *targetCalendar = nil;
    targetCalendar = [eventStore defaultCalendarForNewEvents];
    
    if (targetCalendar == nil){
        NSLog(@"The target calendar is nil.");
    
        //do an alert with only an OK - test this
    
        [eventStore release];
        return;
    }   
    
    NSLog(@"The target calendar is %@.", targetCalendar);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am very new to iPhone application development. Am adding the events to iCal from
I am new to iphone app development, while taking picture from camera I am
Looking at adding some data graphing to a new iPhone app in development (ala
I'm new to iPhone development and now working on my first app. I have
New to iPhone app development, I have a problem compiling (or Build and Run)
I am new to iphone development.I am creating a map application.Now i am facing
I'm implementing a new iPhone app and am relatively new to Cocoa development overall.
4 java developers are new to iPod Touch/iPhone app development. They have an idea
I'm pretty new to iPhone development but I'm close to releasing my first app
I am new to iphone development. I am trying to develop an alarm app,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.