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

EventKit in Swift not working with Swift 2.0

I am trying to migrate to swift 2.0 but not all of my code is working. I have succed to migrate most of the code but I stillt have troubles using the EventKit. The code below was working fine with swift 1.2. But now I have a Problem import…
Silve2611
  • 2,198
  • 2
  • 34
  • 55
0
votes
1 answer

Objective C - How does Calendar adds file attachments to events?

In OS X (tested in 10.8 and higher), it is possible to add a file attachment (like an email or a PDF file) in an already created or in-creation event by drag-and-dropping it into the event (EDIT: or event by selecting Add attachment/file). A similar…
0
votes
1 answer

EventKit last event of calendar

I'm making an app in which I sync certain events to a calendar on iPhone. The problem is, I have no way of telling which events were altered/removed/... So I need to remove all the events between today and the end date of the last event of the…
SnyersK
  • 1,296
  • 8
  • 23
0
votes
1 answer

NSDatePicker to NSDate

I am trying to make the date which is packed from the date picker become an NSDate, so I can create an event. @IBOutlet var pckStartDate: NSDatePicker! @IBOutlet var pckEndDate: NSDatePicker! var dateFmt1 = NSDateFormatter() …
Yelims01
  • 47
  • 1
  • 8
0
votes
1 answer

Deleting reminders from calendar in Swift

I use the following function to retrieve my calendar: func retrieveCalendar() -> EKCalendar? { appDelegate = UIApplication.sharedApplication().delegate as? AppDelegate var myCalendar: EKCalendar? let calendars =…
theDC
  • 6,364
  • 10
  • 56
  • 98
0
votes
1 answer

Push Notification, Reminder Calendar, EventKit implementation

I have a TableViewController app in Xcode and I would like to add a remember calendar, a push notification functionality and alarms like the built-in Reminders app. Could you help me with the implementation and five me some tips? I hope you could…
Razvan Julian
  • 59
  • 3
  • 14
0
votes
3 answers

The count in my For loop is not incrementing

When running my code, I am getting a number of 1's printing to the console rather than 1,2,3,4,5.... Some help with why this is happening would be great, I'm having trouble figuring it out. The idea is to loop through the Calendar names until…
Yelims01
  • 47
  • 1
  • 8
0
votes
2 answers

Stuck with creating an event and formatting dates (Swift - EventKit - OS X)

I have been stuck on trying to hardcode a new event. My difficulty lies especially with the dates and formatting let dateFormatter = NSDateFormatter() dateFormatter.dateFormat = "MM'/dd'/YYYY" var dateString = "07/16/2015" var startDate…
Yelims01
  • 47
  • 1
  • 8
0
votes
1 answer

Fetching reminders in background using EventKit

I am creating an Apple Watch app which has a button that makes a call to the parent iOS app. WKInterfaceController.openParentApplication(message, reply: { (response: [NSObject:AnyObject]!, error: NSError!) in // processing data from…
Tom van Zummeren
  • 9,130
  • 12
  • 52
  • 63
0
votes
1 answer

IOS/xcode/coredata: Implement calendar control using core data

IOS newb here trying to implement an open source calendar control MADay in my project with the data stored in core data. The calendar control does not provide documentation for accessing core data. I am guessing that I need to create an NSArray…
user1904273
  • 4,562
  • 11
  • 45
  • 96
0
votes
0 answers

How to open Reminder Event Default screen using our app

I am creating a app where i can set the reminder based on Location and date.Apple has already given the UI if you are using Reminder which has both option.Can any one help me out that how can i open that Create event screen.
amit soni
  • 2,183
  • 1
  • 14
  • 17
0
votes
1 answer

EventKit private EventStore

I'm new to Swift and exploring at my own pace. I've got one simple question which might sound stupid, but here goes: Does Apple's EventStore (from EventKit) allows you to store/read events which are specific to your app only? I'm developing a…
kernelpanic
  • 2,876
  • 3
  • 34
  • 58
0
votes
2 answers

Populate tableView with events from iOS (swift)

I've been following "iOS8 Swift Programming Cookbook"'s section on EventKit and calendars, and I've learned a lot (especially since I'm new to programming). But the next step that I want to take is populating a tableview that I have an outlet to in…
Leighton
  • 6,559
  • 7
  • 21
  • 28
0
votes
3 answers

How to set the tint color of iPhone calendar cancel and done buttons

I have implemented the native event calendar in my application. I am able to display the calendar shown in the screenshot below by using the following code: EKEventEditViewController *eventEditViewController = [[EKEventEditViewController alloc]…
VasuIppili
  • 37
  • 6
0
votes
1 answer

calling self.tableView.reloadData takes 10-15 seconds

I am trying to load data into a Table View with Swift. My problem is that the displaying of the data takes a good 10-15 seconds. The data does end up getting displayed, but it just takes to long of a time. I am retrieving events from iCal and then…
PoKoBros
  • 701
  • 3
  • 9
  • 25