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
0 answers

(EventKit) Why does retrieving an event from calendars take around 10 seconds?

So I'm retrieving events from the iOS Calendar (within a certain predicate), sorting and storing them in an array; then I fetch the first event's title, time and location and display them as UILabels on Storyboard. The first problem I encounter is…
Infineon Labs
  • 91
  • 1
  • 11
0
votes
1 answer

How can I sort an array of EKEvent by date?

I have an array that stores events fetched via a predicate; I want to sort them by date. I read that I have to "call sortedArrayUsingSelector: on the array, providing the selector for the compareStartDateWithEvent: method', but I don't know how to…
Infineon Labs
  • 91
  • 1
  • 11
0
votes
1 answer

Can't add/change alarms EKAlarm to a [newly created] EKEvent event

I'm trying to create an event with one alarm programmatically like that: +(void)exportEvent:(AgendaEvent*)evento onCalendar:(EKCalendar*)calendar { EKEventStore* store= [[[EKEventStore alloc] init] autorelease]; …
Gianluca P.
  • 1,536
  • 15
  • 15
0
votes
0 answers

EKReminder with EKRecurrenceRule not saving iOS

I have a problem with saving EKReminder when I set a EKRecurrenceRule for it. When I'm saving reminder without recurrence rule, reminder is saved. Can anyone help me? I tried everything, but it still not working... NSError *error = nil; BOOL saved =…
saltwat5r
  • 1,107
  • 13
  • 21
0
votes
1 answer

Eventkit doesn't always delete events

I am working on an app, that gets a student's school lessons online and saves it to the iPhone's calendar. Every time the lessons get updated, I want to delete all events from the calendar of the week, and then put in the updated lessons for the…
magnuskahr
  • 1,137
  • 9
  • 17
0
votes
1 answer

How to know which reminder is updated in EKEventStoreChangedNotification

I am integrating iOS reminder app in my application, when i receive EKEventStoreChangedNotification how to know which particular reminder is modified or do I need to fetch all the reminders and update in my application. In the documentation it is…
Chandan Shetty SP
  • 5,087
  • 6
  • 42
  • 63
0
votes
1 answer

APS registerForRemoteNotifications control the default alert style

When I register, on my app delegate, for remote notifications: [[UIApplication sharedApplication] registerForRemoteNotificationTypes: UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound]; I do receive…
David Homes
  • 2,725
  • 8
  • 33
  • 53
0
votes
1 answer

How to create a daily calendar event using event kit?

I am having a event starting from june 1st to june 10th daily 10 am to 5 pm.After creating the event programatically it needs to add in calendar from june 1st to 10th in between 10 to 5 only.I don't want to enable the all day option.I want to use…
sairam
  • 299
  • 1
  • 6
  • 17
0
votes
0 answers

EKCalendar title crashing app (MonoTouch.EventKit.EKCalendar.set_Title)

I have a problem with EKCalendar from MonoTouch.EventKit. Application is crashing when I try to set a title by a property. It doesn't occur every time, just twice. Here are a fragment of my logs: Apr 29 16:49:19 iPad[973] : Stacktrace: Apr 29…
0
votes
1 answer

Access to EKevent and EKReminder

In my iOS calendar app When Request privacy from EKEventstore For Event all thing done well.But when allow app to access Reminders All calendar disappear and when try to get calendars nil returned. This issue in iOS 7.1 only. Steps to…
0
votes
2 answers

Receive and respond to EKEventStoreChangedNotification in the background?

I was wondering if in iOS7, with the new API's it was finally possible to respond to a notification in the background, in my case, I have the following observer: [[NSNotificationCenter defaultCenter] addObserver:self …
albertosh
  • 2,416
  • 7
  • 25
  • 32
0
votes
1 answer

EKAlarms with relativeOffset

I'm currently trying to write a method to compare EKAlarms to one another. The problem with this is between absoluteDate and relativeOffset. Comparing two alarms each with an absoluteDate is easy, but if one or both have a relativeOffset, you need…
user1869469
  • 491
  • 4
  • 13
0
votes
1 answer

Apportable compilation error with Eventkit

When trying to compile a Xcode project with Apportable I get a fatal error that the file EventKit/EventKit.h is not found. Is this because EventKit is not supported? Is there a workaround for that?
0
votes
1 answer

If I subclass from EKReminder will I be able to save my custom class to the eventstore on iCloud

I would like to develop a custom Reminders application. The properties and methods the EKReminder has by default are not enough. If I subclass it and then add all the extra properties and stuff I need will I be able to save it to the iCloud…
unom
  • 11,438
  • 4
  • 34
  • 54
0
votes
1 answer

Adding event to native iOS calendar, not working when alert is included

I have application that need to write events into native calendar. Writing works fine if added EKEvent doesnt contain EKAlarm. If i include this lines of code: EKAlarm *alarm = [EKAlarm alarmWithRelativeOffset:-30]; event.alarms = [NSArray…
Ivan Alek
  • 1,899
  • 3
  • 19
  • 38