Questions tagged [eventkit]

EventKit is a framework on iOS and OS X which provides classes for accessing and modifying calendar event information.

From the documentation:

The Event Kit and Event Kit UI frameworks together allow applications to access event information from a user’s Calendar database. You can fetch events based on a date range or a unique identifier, receive notifications when event records change, and allow users to create and edit events for any of their calendars. Changes made to events in a user’s Calendar database with Event Kit are automatically synced with the appropriate calendar (CalDAV, Exchange, and so on)

The EventKit framework provides classes for accessing and manipulating calendar events and reminders.

Event Kit not only allows your app to retrieve users’ existing calendar and reminder data, but it also lets your app create new events and reminders for any of their calendars. In addition, Event Kit lets users edit and delete their events and reminders (collectively known as “calendar items”). More advanced tasks, such as adding alarms or specifying recurring events, can be achieved with Event Kit as well. If a change to the Calendar database occurs from outside of your app, Event Kit is able to detect the change by notification so your app can act appropriately. Changes made to calendar items with Event Kit are automatically synced to the associated calendar (CalDAV, Exchange, and so on).

Event Kit provides limited access to a user’s Calendar database; it does not include everything that would be desired for implementing a full-featured calendar or reminder app, such as adding attendees or accounts.

Reference:

1.EventKit Constants Reference

2.EventKit Framework Reference

3.Introduction to Calendars and Reminders

4.EventKit UI Framework Reference

Sample Code:

SimpleEKDemo

567 questions
0
votes
1 answer

Add events to Calendar from .ics file

I've got the URL of an .ics file, and I'm looking to add it to the users calendar. Others have suggested using [[UIApplication sharedApplication] openURL: icsURL], except this directs the user to Safari and they don't return. Is it possible to…
Josh Hunt
  • 14,225
  • 26
  • 79
  • 98
0
votes
2 answers

iOS EventKit - Event is not being deleted from calendar

I'm deleting event using the following code [store requestAccessToEntityType:EKEntityTypeEvent completion: ^(BOOL granted, NSError *error) { if (granted) { EKEvent *event = [store eventWithIdentifier:eventIdentifier]; NSError…
Afnan
  • 888
  • 1
  • 13
  • 37
0
votes
1 answer

EventKit framework inclusion check

I want to check whether EventKit Framework is included or not in the project. I have used the below method to check : NSClassFromString(@"EKEventStore") It worked. Even though i haven't included the EventKit framework in the project but I am getting…
Bharath
  • 198
  • 1
  • 1
  • 9
0
votes
1 answer

Update event in recurrence event

i am trying to update and with recurrence rule. in my app i create repeating event that repeat every day. if i am trying to change one of the events (not the root) all of the events are deleted! i try to use [self.eventStore saveEvent:event…
Sosily
  • 706
  • 1
  • 10
  • 26
0
votes
2 answers

EventKit - multiple methods named 'location'

I am trying to list out the Name, Location, and Notes from calendar events. Reading and writing the Name and Notes work as expected but I run into problems with the Location field. Specifically, the following line "meetingLocation = [element…
0
votes
0 answers

wrongly show ical event end date in ios

I am working on ical event. i add some events in ical. that event start Date:26 Sep 1.00pm end date:5 oct 2.00 pm recurrence end date:5 apr 2014 i loaded all ical event in my app. but it shows different end date. end date is same as recurrence end…
banu
  • 787
  • 9
  • 24
0
votes
1 answer

Create an EKEvent with a few discrete days

This sounds silly but I could not find an answer. I wanted to create an EKEvent with a few days (such as 9 to 10 am on 10/01/2013, 10/13/2013, 10/20/2013). How do I do that? I would hope that I could create only one event for these dates. I thought…
0
votes
1 answer

Best way to search for events?

I want to give my users an option to search in events - title, location, notes, etc. What's the best way to do that? Just fetch all events to the next 2 years, but how to make the search without slowing things up?
Eli_Rozen
  • 1,301
  • 4
  • 20
  • 31
0
votes
1 answer

Using EKEventEditViewController causing a memory leak?

I am using an instance of EKEventEditViewController so I can edit a selected event. When the controller is dismissed via eventEditViewController:didCompleteWithAction: I notice that my memory usage does not go down. Each subsequent use of the…
Johnathon Sullinger
  • 7,097
  • 5
  • 37
  • 102
0
votes
0 answers

How to make a custom calendar in iOS and add it to default app? Can't directly init a calendar. Use calendarWithEventStore

I was using the calendar code from Apple Sample Code. I want to make my calendar in the app to add events. But I am not getting the how to make the own calendar and add it to the default calendar app of iOS. I am getting this error. "Terminating…
HDdeveloper
  • 4,396
  • 6
  • 40
  • 65
0
votes
2 answers

Test EventKit calendar access

I had to find out that my own app was never denied on my iPhone to get access to the calendar. But on all others I was missing the code for asking for permission. Now i included the appropriate code, but how can I be sure it works without submitting…
Thomas
  • 1,468
  • 4
  • 14
  • 20
0
votes
1 answer

iOS: Detecting if User Canceled "Add to Calendar" in event kit?

I have a button in my app that brings up the EventEditViewControllerWithEventStore view. When The user presses done, the event is added to the calendar and I present a notification when it's added. However, how can I tell if the user canceled? As of…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
0
votes
0 answers

Highlight certain days in monthcalendar in iphone

I need to mark date from the date where the event is started to the the date where the event is ended. I need to mark from start date to end date with some shadow on my calendar.How can I do this.
0
votes
1 answer

Create new Reminders list with EventKit?

My app uses EventKit to read and write new reminders to and from the Reminders app, which works well. However, I've only found a way to write reminders to the default list that the user selects in the Settings app... My question is, does anyone know…
JohnWickham
  • 571
  • 1
  • 6
  • 15
0
votes
2 answers

Won't save changes to an EKEvent that has recurrenceRules

The following code works for non-recurring events, changes to startDate and endDate are saved just fine. BOOL success = [theEventStore saveEvent:event span:EKSpanFutureEvents …
Felix Ungman
  • 502
  • 2
  • 9