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

EventKit: reminders dueDateComponents vs Alarm

I want to create a reminder from my app, so I've created a reminder (EKReminder) and set up an alarm: NSTimeInterval timeInterval = 100000; NSDate *alarmDate = [NSDate dateWithTimeIntervalSinceNow:timeInterval]; EKAlarm *alarm = [EKAlarm…
Jonathan.
  • 53,997
  • 54
  • 186
  • 290
7
votes
2 answers

Does Apple provide a UI for editing/adding Reminders?

I know there is an API for adding a reminder programatically. But is there a view controller for reminders? I've looked in EventKitUI framework, but I'm not sure if EKEventEditViewController works for reminders, or only for calendar items. Like…
Jonathan.
  • 53,997
  • 54
  • 186
  • 290
7
votes
1 answer

EventKit without using Calendar or Reminders App

I am curious if there is a way to use the capabilities of EventKit - creating events, recurrence rules, etc. - without actually having to interface with the Calendar and Reminders apps? A little more detail on requirements and such: A user launches…
Josh Bruce
  • 1,002
  • 13
  • 24
6
votes
1 answer

How to set a reminder(alarm) using eventKit framework for a particular date

I am working with EventKit framework in iOS 5 and I successfully added an event to the iOS calendar using the below code EKEventStore *eventDB = [[EKEventStore alloc] init]; EKEvent *myEvent = [EKEvent eventWithEventStore:eventDB]; …
Ranjit
  • 4,576
  • 11
  • 62
  • 121
6
votes
7 answers

EKEvent eventIdentifier returns null

When I try to get the identifier of an EKEvent, all I get is a nil value. Since in iOS5 EKEvent is a subclass of EKCalendarItem, I figured I might be able to get the EKCalendarItem's UUID, but that returns nil as well. Every now and then I also get…
Glenn
  • 1,085
  • 1
  • 9
  • 13
6
votes
1 answer

How to get assignment of a reminder (EKReminder) in iOS?

[Update: I submitted an official Apple Developer feedback request for an update to the EventKit API and documentation] [Update: I contacted Apple Support and they said to read the docs...so I think Matt is correct, It is simply not…
jessi
  • 1,438
  • 1
  • 23
  • 36
6
votes
2 answers

How to resolve an infinite loop in requestAccess(to:completion:) on EKEventStore?

I am switching on EKAuthorizationStatus but even after requestAuthorisation(to:commit:) is called and returned true and no error the switch statement still matches the .notDetermined case and a recursion in it is producing an infinite loop. And it…
6
votes
1 answer

iPhone 'Event Kit' - how can I specify additional search filters for a fetch (beyond start/end date)?

re iPhone 'Event Kit': How can I specify additional search filters (per doco here) for a fetching calendar items, beyond the limited options of just start & end date mentioned in the doco? (e.g. all events occurring on Mondays, or with title…
Greg
  • 34,042
  • 79
  • 253
  • 454
6
votes
3 answers

EKEventEditViewController Add and Cancel buttons not responding

I am trying to add a calendar event using EKEventEditViewController. I have setup a EKEventEditViewController properly with an EKEventStore, EKEvent, and its editViewDelegate as the presenting view controller. The EKEventEditViewController presents…
6
votes
2 answers

EventKitUI/EKCalendarChooser needs access to contacts - why?

I have an existing app since 2010, and with iOS 10 it is now required that the app is having strings in the Info.plist describing the usage, as explained here: http://useyourloaf.com/blog/privacy-settings-in-ios-10/ However, I already added the…
user826955
  • 3,137
  • 2
  • 30
  • 71
6
votes
1 answer

iOS App Error: I screwed up somewhere in date calculation

My app crashing randomly, I can't generate same case that occurs in user's devices, here more details from the crash report: Crash CLASS: NSInternalInconsistencyException FUNCTION: -[CalendarViewController deleteEvent:] The method implementation…
Mohammad Rabi
  • 1,412
  • 2
  • 21
  • 41
6
votes
4 answers

How to fix EKErrorDomain Code=1 "No calendar has been set

I want to create a calendar entry to the iPhone calendar, I have tried the following code EKEventStore *eventStore = [[EKEventStore alloc] init]; EKEvent *event = [EKEvent eventWithEventStore:eventStore]; event.title =…
Johnykutty
  • 12,091
  • 13
  • 59
  • 100
6
votes
1 answer

Bullied by the EventKit framework on iOS 6

At first I though I had left my self this message, but then I started seeing more comments like this one. I just want to ask if Im the only one seeing messages like this ? I think its funny in some way, but it left me wondering if I'd got a rogue…
the Reverend
  • 12,305
  • 10
  • 66
  • 121
6
votes
3 answers

Add participant to an event in iOS

In the EKParticipant Class reference, " Send attendees to an EKEvent object to get an array of EKParticipant objects. " OK, buy how can I send attendees to an EKEvent object? Someone give example code?
mozkarakoc
  • 269
  • 6
  • 14
6
votes
3 answers

URL Scheme for opening the iCal app at a date or event?

The Apple URL Scheme Reference gives a nice overview of a number of URL schemes you can use to open certain built-in apps with some parameters. I know that this is not a complete list of all possible URL schemes that the built-in apps respond to,…
epologee
  • 11,229
  • 11
  • 68
  • 104
1 2
3
37 38