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

  • Home
  • SEARCH
  • 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 8576093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:50:51+00:00 2026-06-11T19:50:51+00:00

I am doing one simple application using iPhone calendar, where I need to import

  • 0

I am doing one simple application using iPhone calendar, where I need to import the iPhone native calendar events into my iPhone app. How can I do this. I have a piece of code but it doesn’t seems to be working. I have added some events into my iPhone native calendar. But when i retrieve it’s not fetching anything. Here is the piece of code.

-(IBAction)importCalEvents:(id)sender
{
    NSArray *caleandarsArray = [[NSArray alloc] init];
    caleandarsArray = [[eventStore calendars] retain]; 
    NSLog(@"Calendars from Array : %@", caleandarsArray);

for (EKCalendar *CalendarEK in caleandarsArray) 
 {
    NSLog(@"Calendar Title : %@", CalendarEK.title);    
 }        
}
  • 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-06-11T19:50:52+00:00Added an answer on June 11, 2026 at 7:50 pm

    you can fetch all the calendar events like this.

    import these 2 framworks (add if not exists into your project).

    1 EventKit/EventKit.h

    2) EventKitUI/EventKitUI.h

    call this function on button click

    -(void)EventList{
    
        EKEventStore *eventStore = [[EKEventStore alloc] init];
    
        NSDate *startDate = [[NSDate alloc] init];
        NSDate *endDate = [[NSDate alloc] initWithTimeInterval:3600 sinceDate:startDate];
    
        NSArray *calendars = [eventStore calendars];
        NSPredicate *predicate = [eventStore predicateForEventsWithStartDate:startDate
                                                                     endDate:endDate calendars:calendars];
        NSArray *matchingEvents = [eventStore eventsMatchingPredicate:predicate];
        EKEvent *anEvent;
    
        NSLog(@"Total Events >> %d",[matchingEvents count]);
    
        for (int j=0; j < [ matchingEvents count]; j++) {
    
            anEvent = [matchingEvents objectAtIndex:j];
    
            NSLog(@"Title >>>%@",anEvent.title);
            NSLog(@"start date is %@ \n End Date is >>> %@",anEvent.startDate,anEvent.endDate);
    
        }   
    }
    

    And set the startDate and EndDate as per your Requirement.

    so you can get all the detatils you want.

    Best Luck..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Iam doing one application in iphone.In this i need to get the browsing history
hi i am doing one application here i need to disply 6 images in
I have an iPhone application that is mostly using standard controls. There is one
I'm doing some test on a very, very simple application using Spring . My
I'm looking into writing a simple synchronization ability into my app and one of
I'm working on a universal iPhone/iPad application. I'm using MonoTouch, but I can take
If all that you're doing is a simple one-pass iteration (i.e. only hasNext() and
`hi I am doing a simple synchronous socket programming,in which i employed twothreads one
i am doing one small application , wheich have login functionality, in the user
I currently have a simple iPhone app that loads a custom subclass of UIView.

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.