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
4
votes
3 answers

EKEventStoreChangedNotification not firing

So I'm currently playing around with EventKit and was trying to get the EKEventStoreChangedNotification to fire when I add/modify/delete calendar entries in the native Calendar app, but after asking permission to access the Calendar, confirming that…
zatatatata
  • 4,761
  • 1
  • 20
  • 41
4
votes
2 answers

EKEvent is not added according to given EKRecurrenceRule

I'm trying to add an event into calendar with recurrence rule RRULE:FREQ=YEARLY;BYMONTH=6,7;BYDAY=1TH So according to this rule the event should be added yearly, each 1st thursday of june and july until expire date, which I've set in my project. In…
shuvo
  • 705
  • 5
  • 15
4
votes
2 answers

Event alarms not created correctly in EventKit with iOS4.3 / calendars synced to Google Calendar

I have a seemingly straightforward, textbook case of using EventKit to create events with alarms. Frustratingly, it doesn't work. Here's what I'm doing: Create an EKEvent with [EKEvent eventWithEventStore:] and fill out a bunch of its…
Eugene Osovetsky
  • 6,443
  • 2
  • 38
  • 59
4
votes
0 answers

How to programmatically access default alert time for calendar events?

In recent iOS versions, users may select a default alert time that will be used for all newly-created events (by going to Settings --> Mail, Contacts, Calendars --> Calendars / Default Alert Times, see…
Eugene Osovetsky
  • 6,443
  • 2
  • 38
  • 59
4
votes
1 answer

Add id to events in reminder Objective-C

I add reminder events using Eventkit.framework in my app but when i show the reminder events in my app it shows all the reminder events in iPhone but I only want to show the reminder events that I added. Here is my code for adding an event using…
Surya Subenthiran
  • 2,217
  • 1
  • 15
  • 22
4
votes
3 answers

Failing to save EKReminder in iOS 6

I am trying to save/ retrieve reminders from my app, but for some reason the EKReminder seems as though it is not being saved. Here is my code: EKEventStore * _eventStore = [[EKEventStore alloc] init]; [_eventStore…
Sean Danzeiser
  • 9,141
  • 12
  • 52
  • 90
4
votes
2 answers

Syncing EKRecurrenceRules with Cloud Service RFC 2445 iCalendar specification RRULE

I'm trying to create a cloud based service which stores recurring Events. I have chosen to do this using the icalendar RRULE standards (RFC2445) and use a database schema as below exposed via cloud based…
4
votes
1 answer

is it possible to change the default alarm timings in icalendar using eventkit?

I used the following code to display a calendar using EVENTKIT - (BOOL)createEvent:(NSString *)title at:(NSString *)location starting:(NSDate *)startDate ending:(NSDate *)endDate …
Swetha
  • 95
  • 6
4
votes
0 answers

How do you access all CalDAV calendars/events on OSX?

I want to access all the calendars that a user can see in iCal on OS X. I know about EventKit and CalendarStore. However, it seems that both of those frameworks omit CalDAV delegate calendars (which are visible in iCal). Others have noticed this as…
sam
  • 3,399
  • 4
  • 36
  • 51
3
votes
0 answers

Fetch only calendar-events created by my application

I'm just working on a simple application that creates events in calendar (EventKit), I don't want to add a specific calendar for my application, I prefer leaving user free to choose on which calendars add a new event. I think that an approach would…
MatterGoal
  • 16,038
  • 19
  • 109
  • 186
3
votes
1 answer

Edit and Delete Existing EKEvent?

I am using the Kal calendar in my app, (hopefully that doesn't change too much) but I get an EKEvent object from that depending on the user selection on the calendar. Anyway, how can I edit and delete an event which already exists? Namely the…
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
3
votes
2 answers

Property 'delegate' not found on object 'AddEventViewController'

With the help of the Developer Library, I am trying to work with the EventKit and EventKitUI Frameworks. I've hit a very early roadblock. I have copied and pasted code from the library found here. I have added a view controller called…
Solid I
  • 580
  • 5
  • 13
  • 34
3
votes
0 answers

Check if an event exist using EventKit

I know how to create an event using EventKit framework. But how to check an event exist or not using EventKit framework? Is it possible?
Raptor
  • 53,206
  • 45
  • 230
  • 366
3
votes
2 answers

Add a new calendar to an EKEventStore with EventKit

How can I add a Calendar (not an event) to a EKEventStore in iOS 5?
cfischer
  • 24,452
  • 37
  • 131
  • 214
3
votes
3 answers

EKAlarm will not set in iOS 5

I wrote the following snippet to create an event. Setting the alarm works fine in iOS 4, but in iOS 5 it doesn't get set. Is this a bug or am I missing something? EKCalendar *cal = [self.eventStore defaultCalendarForNewEvents]; EKEvent *event =…
Alexander
  • 1,495
  • 2
  • 19
  • 24