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
-1
votes
1 answer

how to edit the picker view components in eventkit view controller

I am trying to edit the components of AM & PM wither other text. I am using Eventkit framework. How would I modify those components. Any idea where I got stuck ?
-1
votes
2 answers

Memory Management & Performance with EK EventKit

In a calendar app I display events based on the EventKit API. I fetch events from EKEventStore and display them in daily, weekly, monthly views, as lists, etc. Now I am running into some performance problems on iPhone 4. The performance problems…
Mundi
  • 79,884
  • 17
  • 117
  • 140
-1
votes
1 answer

iOS Reminders change state programmatically

Is it possible to change this switch programmatically? I have a switch in my App to enable/disable all notifications and if I could toggle this switch I wouldn't have to remove or re-add all reminders everytime the user changes this setting.
Pacha
  • 51
  • 1
  • 7
-1
votes
2 answers

Create calendar event from inside my application

I know that there already are lots of questions and even useful answers concerning this question on the web. I tried to add a calendar event to the iPhone calendar from inside my application. I used this code, which actually worked: EKEventStore *es…
Enno B.
  • 1
  • 3
-1
votes
1 answer

How to create a calendar and add an events using ios6?

I am working on universal App. In my App i need to add an event based calendar. Is there any good tutorial to do this or anyone then please provide some information about how to create calendar and add an events to the dates.
Alex
  • 403
  • 8
  • 13
-2
votes
2 answers

FSCalendar events in Swift 3

How can events be added to an FSCalendar in swift 3?
Kevin Hall
  • 27
  • 3
-2
votes
1 answer

How to get the list of all islamic events of current year using eventkit.framwork in ios

I want to get the list of all Islamic events of current year using Eventkit framework. Used the given below code from stackoverflow but app crashes at NSPredicate line. -(void)showAllEvents { NSDate* endDate = [NSDate…
iOS_Learner
  • 159
  • 9
-2
votes
1 answer

Intersecting two NSArrays with non-comparable objects inside

The following code receives an array of events from EventKit for the selected day, then "pads" the existing calendar events with empty events to fill hourly slots from the entire day (9-5, for example). The events coming from the iOS calendar are…
ryebread
  • 984
  • 9
  • 30
-3
votes
1 answer

Save Event to Calendar from API when Button in TableViewCell is Pressed

I would like to have the same "Save to Calendar Button" in every row of a tableView and each button opens a different Event from JSON imported through an api using decodable. I need to assign the indexPath.row for each button so that the first…
-3
votes
3 answers

How to show list of calendars

In my project i need to show list of calendars where user can select one, based on selection i need to fetch the events from device calendar app. Is there any way to show the default calendar list like the below image or should i customise the…
Test Test
  • 1,761
  • 3
  • 10
  • 12
-4
votes
1 answer

How to create reminders that don't have to be shown in the Apple's Reminders app

With the following code I can successfully create a reminder event and add an alarm to it that triggers 10 seconds after the event has been created. What I don't like about the way the reminder is created is that it shows in the Apple's Reminders…
fs_tigre
  • 10,650
  • 13
  • 73
  • 146
-5
votes
3 answers

How can I include all the calendars from my phone?

I made an app which fetches all the calendar events through EventKit but the code I wrote works only on particular title: func readEvents() { let eventStore = EKEventStore() let calendars = eventStore.calendars(for: .event) for…
S.Verma
  • 199
  • 2
  • 14
1 2 3
37
38