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

Edit a Calendar event when the app is in background or kill mode

In my app, user can join to remote events. When the user joins an event, I create an event in native iOS calendar. I know that I can edit and delete that event from my app when the app is running. Now I have a requirement to edit or delete the…
smartsanja
  • 4,413
  • 9
  • 58
  • 106
0
votes
1 answer

Swift 3 and EKEventStoreRequestAccessCompletionHandler throwing exception

I tried to request access to the calendar using following code: EKEventStore().requestAccess(to: EKEntityType.event, completion: { (success: Bool, error: NSError!) in print("Got permission = \(success); error = \(error)") }) Xcode wants…
MotoxX
  • 917
  • 1
  • 7
  • 13
0
votes
1 answer

How to define EKRecurrenceRule to represent 'Every 4 years only on 4th of July'

I am trying to represent the recurrence rule, Every 4 years only on 4th of July. like this: termin.addRecurrenceRule(EKRecurrenceRule(recurrenceWithFrequency: .Yearly, interval: 4, daysOfTheWeek: nil, daysOfTheMonth: [NSNumber(int:…
Goppinath
  • 10,569
  • 4
  • 22
  • 45
0
votes
0 answers

How to model recurring events in terms of recurring rules to efficiently find them again for a particular day?

I am working for an iOS App where I am implementing calendar function as a part. I made my mind not to use EKEvent for several reasons. Therefore I need to have my own Event class and my own CalendarController to display Event graphically. Event…
Goppinath
  • 10,569
  • 4
  • 22
  • 45
0
votes
1 answer

swift2 filter reminder using start and end dates

How to filter reminder using start and end dates let predicate = eventStore.predicateForIncompleteRemindersWithDueDateStarting(today, ending:tomorrow, calendars: []) am using this method for filter but am getting null value.
Kenrick
  • 1
  • 1
0
votes
2 answers

Recurring Weekly Event in Swift iOS EventKit

I have the present method to allow for creating a calendar event within EventKit. func createEvent(eventStore: EKEventStore, title: String, startDate: NSDate, endDate: NSDate) { let event = EKEvent(eventStore: eventStore) event.title =…
Sauron
  • 6,399
  • 14
  • 71
  • 136
0
votes
1 answer

Adding Event Kit.Framework results in 1000+ Errors When Deployed to Device!

I need to add a calendar event to the user's Calendar when they click a button. This works in the simulator, but when I attempt to deploy to my 3GS running iOS 4.01, XCODE throws 1000+ errors! Any ideas? Thanks! Jason
JasonBub
  • 173
  • 3
  • 15
0
votes
1 answer

Custom repetitive uilocalnotification that isn't subject to iOS limit

I am developing a Calendar app for iOS.I have gone through lot of similar apps on appstore,I came across this app called RE.minder.There is a feature called BugMe which pings notification every 1 min or 1 hr on reminder.Due to Apple limitations of…
Hardroid
  • 51
  • 6
0
votes
1 answer

CalDAV handling in Swift or Objective C

I'm trying to manipulate CalDAV events with EventKit or a third-party library. I have a CalDAV server hosted in my local network and I added some extra property parameters in the RESOURCES property of a VEVENT, it looks like:…
Robin Delaporte
  • 575
  • 5
  • 15
0
votes
1 answer

get the "unexpectedly found nil while unwrapping an Optional value" error

Im using google places api to and use the coordinates to put an annotation on an apple maps. What I want to do now is to translate coordinates to name and address and use it for the Ekreminder. This is my code so far but i get the error "fatal…
Tim
  • 69
  • 10
0
votes
0 answers

Turn off EKcalendar's Alerts

In the interface of the calendar on an iOS device, there is this switch, that turns off all alerts of that specific calendar. I would like to set that switch programmatically. Does any of you know a way to accomplish that?
Sjakelien
  • 2,255
  • 3
  • 25
  • 43
0
votes
2 answers

Swift EKRecurrenceDayOfWeek issue

I am trying to add a reminder that will repeat every Monday. But I am gettingthe following error: Cannot convert value of type 'Int' to expected argument type 'EKWeekday' when I am adding the RecurrenceRule. In Apple's documentation it states…
Jaxs_ios
  • 48
  • 10
0
votes
1 answer

How can I create EKEventStore different instances with different Identifiers?

I want to create three instances of EKEventStore class to store my 3 different events, EKEventStore *event = [EKEventStore alloc] init]; EKEventStore *event1 = [EKEventStore alloc] init]; EKEventStore *event2 = [EKEventStore alloc] init]; When I…
Muhammad Awais
  • 340
  • 3
  • 15
0
votes
1 answer

Xamarin.iOS & Eventkit

i have a problem to get an calendar entry from Eventstore via eventfromIdentifier. To Save a Event works fine, but when i tryto retrieve a Event from EventStore, it returns null. I checked other Questions here on stackoverflow and no one fix it. I…
Peiper
  • 56
  • 9
0
votes
0 answers

Add attendees to iCloud calendar event

I am using Event Kit to read and create events. I want to be able to add attendees to such events. But as described in documentation we cannod do that with Event Kit framework: Event Kit provides limited access to a user’s Calendar database; it …