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

EventKit - App freezes when adding an EKEvent with 2 alarms (iOS 5)

I have an app that programmatically adds reminders to your iOS device's calendar. Previous to iOS 5, I could add a calendar item with two alarms thusly: EKEventStore* eventStore = [[EKEventStore alloc] init]; EKEvent* event = [EKEvent…
Glenn Barnett
  • 2,031
  • 1
  • 21
  • 31
5
votes
1 answer

XCode: Why is my event not being added to the calendar?

I have added the following code to my app: NSDate * selected = [DatePicker date]; NSString * date = [selected description]; NSDateComponents *components = [[NSCalendar currentCalendar] components:NSDayCalendarUnit …
pixelbitlabs
  • 1,934
  • 6
  • 36
  • 65
5
votes
2 answers

Is the starting day of the week stored in NSLocale somewhere?

I live in the Netherlands. We Dutch people like to see Monday as the start of the week. I know that people in the US like to consider Sunday as the start of the week. Silly Americans ;) If I want to present a week view to my global users, can I get…
epologee
  • 11,229
  • 11
  • 68
  • 104
5
votes
3 answers

How to customize UITableView of EKEventViewController?

Is there any way to change the background color/image of the details UITableView in the EKEventViewController? I'm able to change the main UITableView but not the detail UITableView due to have no outlet for the table. For example, here is Apple's…
0SX
  • 1,252
  • 6
  • 24
  • 47
5
votes
3 answers

Swift 4.0 Eventkit Cannot get calendars and events correctly

I'm trying to use Eventkit to access Mac Calendar. Access is successfully requested but I keep getting nil or an empty array of calendar or events, even though I have several calendars and many eventsin local calendar, iCloud calendar, and Google…
5
votes
4 answers

EKEventViewDelegate didCompleteWithAction not getting called

I don't get a call to my eventViewController:didCompleteWithAction: when the EKEventViewController finishes edting an event. Here's how I set it up: - (void)showCalendar:(id)sender { EKEventViewController *eventViewController =…
Rob
  • 123
  • 1
  • 7
5
votes
1 answer

Store a custom value in a EKEvent (iPhone Calendar)

My app integrates with the device calendar. When a new item is added to my app we create a calendar entry for this item. If the item is edited we need to update the calendar item. What I do now is put a GUID in the EKEvent.Notes but obviously this…
Neal
  • 9,487
  • 15
  • 58
  • 101
5
votes
0 answers

Access deep link information from Reminders API?

iOS 9 introduces a new reminders feature which allows you to deep link back to any app (including 3rd party apps which implement the NSUserActivity API). For example, if you launch Messages, tap a conversation, hold the home button, and say, "Remind…
Senseful
  • 86,719
  • 67
  • 308
  • 465
5
votes
0 answers

Creating reminders with complex rules in ios

I want to create a repeating reminder with a complex rule i.e reminders will have a start date and end date. reminders will repeat on specific week days only. On the selected day between start date and end date they will occur on specific…
amar
  • 4,285
  • 8
  • 40
  • 52
5
votes
1 answer

How sync events on iOS with EventKit across multiple devices

Let's say I have to write an application that must sync with one of the calendars available on the device. Let's assume that I have "Action" objects that have a start date, end date, recurrence etc. Device A: I create "Action" objects and then sync…
Ilea Cristian
  • 5,741
  • 1
  • 23
  • 37
5
votes
1 answer

Reorder EKReminder in a list

Is it possible to reorder EKReminders in EKCalendar of type reminders? In native Reminders app it is possible, but I can't seem to find this option in the API.
Eli_Rozen
  • 1,301
  • 4
  • 20
  • 31
5
votes
1 answer

"calendar has no source" error when creating a new calendar using EventKit in ios 6

I am developing a calendar app using eventkit framework in ios 6. I am trying to get the permission using the [self.store respondsToSelector:@selector(requestAccessToEntityType:completion:)] method and after getting permission to access the…
Suhit Patil
  • 11,748
  • 3
  • 50
  • 60
5
votes
1 answer

Adding an EKAlarm to EKReminder with a recurrence rule

I have a quick question for someone familiar with Event Kit... I'm creating recurring reminders and I'd like an alarm to sound at each recurrence. However, the documentation suggests I can only create an alarm with an absolute date or a relative…
Sean Danzeiser
  • 9,141
  • 12
  • 52
  • 90
4
votes
1 answer

EKCalendarChooser multiple selection does not work

I'm trying to use EKCalendarChooser to get multiple calendars selected by the user. This is how I present the view: EKCalendarChooser* dvc= [[[EKCalendarChooser alloc] initWithSelectionStyle:EKCalendarChooserSelectionStyleMultiple…
user826955
  • 3,137
  • 2
  • 30
  • 71
4
votes
0 answers

Descriptive name for EKSource in iOS5

I've been trying to get a descriptive title for an EKSource on iOS5 for a while now, but the problem I keep running into is that the title of an external exchange source is always "Exchange", even though the native calendar app presents the source…
uvesten
  • 3,365
  • 2
  • 27
  • 40