FAQ Database Discussion Community


How to set a priority for a reminder - Objective-C

ios,objective-c,eventkit
While creating a reminder, I can set alarm for reminder. But I am not able to find any property or method to set priority using objective-c. EKReminder *reminder = [EKReminder reminderWithEventStore:self.eventStore]; reminder.title = @"Title"; reminder.calendar = self.calendar; reminder.dueDateComponents = [self dateComponentsForDefaultDueDate]; EKAlarm *alarm = [EKAlarm alarmWithAbsoluteDate: reminderdate]; [reminder addAlarm:alarm]; ...

Populate tableView with events from iOS (swift)

swift,ios8,tableview,eventkit
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 my ViewController with the event data so...

Adding events and calendars with EventKit

ios,swift,eventkit
I need to add a event to the users calendar. So i get all his calendars with: let calendars = store.calendarsForEntityType(EKEntityTypeEvent) as [EKCalendar] I have a few problems: how do i know to what calendar to add the event I can show the user all his calendars and ask him...

Intersecting two NSArrays with non-comparable objects inside

ios,objective-c,eventkit
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 contained within a custom event container class that...

Add Event to custom calendar crashed the application

ios,objective-c,calendar,eventkit
I am trying to add an event to custom calendar. To fetch the calendar list I used below EKEventStore *eventStore = [[EKEventStore alloc] init]; [eventStore requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) { if(!granted) { //error alert return; } NSArray *calendars = [eventStore calendarsForEntityType:EKEntityTypeEvent]; // List of all calendars // Let user...

The count in my For loop is not incrementing

ios,osx,swift,eventkit
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 finding the 'Travel' calendar. func checkCalendarExists(){...

Modifying EKParticipants (attendees) in EventKit like Sunrise

ios,objective-c,exchange-server,eventkit,ekevent
My goal is to add some invitees to an EKEvent. I've looked into other questions like this, such as this one, but all say that it is essentially impossible to add EKParticipants to an EKEvent programmatically. I do see that the attendees property is read-only, but I see other services...

How to detect privacy permission changes (Camera access for example)

ios,avfoundation,uiimagepickercontroller,eventkit,photokit
We've all been there. You want to take photos within your app, or access photos, microphone, contacts, etc... But first iOS must prompt the user for permission. In many cases the user will deny access. If your app detects that the user has denied access, you can navigate the user...

Will EventKit automatically sync with Google Calendar or Outlook ion iOS

ios,iphone,google-calendar,eventkit
I am trying to build a calendar app and I want the events and reminders could be synced to Google Calendar and Outlook. If I added events only using EventKit SDK, and the Google Calendar account was added. Will the events automatically synced to Google Calendar? Or do I have...

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

ios,osx,swift,eventkit,ekevent
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 = dateFormatter.dateFromString(dateString) var endDate = dateFormatter.dateFromString(dateString) var newEvent : EKEvent = EKEvent(eventStore: store) var error : NSError?...

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

ios,core-data,calendar,control,eventkit
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 after pulling the events from core data...