Questions tagged [ekevent]

A class in the iOS Event Kit Framework that allows an instance of it to represent an event from a calendar.

A class in the iOS Event Kit Framework () that allows an instance of it to represent an event from a calendar.

Available in iOS 4.0 () and later.

285 questions
55
votes
7 answers

How to add an event in the device calendar using swift?

I would be interested in knowing how to add a calendar event in the device, but using swift. I know there are some examples made in Objective-C, but at the moment nothing in swift. Many thanks.
24
votes
2 answers

Modifying EKParticipants (attendees) in EventKit like Sunrise

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…
rebello95
  • 8,486
  • 5
  • 44
  • 65
13
votes
2 answers

EKEventStore getting events returns empty list

I want to get all events from a specific calendar in my app. I created the calendar and the test events in my app (needs iOS 5.0 or later for creating custom calendars). If I run the app on my device and then check the system calendar app then my…
TRD
  • 1,027
  • 11
  • 20
13
votes
1 answer

How to accept/decline EKEvent invitation?

I would like to allow my users to accept/decline a meeting invitation within my app. I think what I need is to update somehow the EKParticipantStatus but it looks like it isn't possible to update. Apple Docs: Event Kit cannot add participants to…
PMT
  • 1,082
  • 8
  • 18
12
votes
2 answers

Difference between EKEvent's eventIdentifier and calendarItemExternalIdentifier

Reading Apple's docs, I'm still confused as to what the difference is between EKCalenderItem's calendarItemExternalIdentifier and EKEvent's eventIdentifier, and which one we should use to identify calendar events across different devices.…
Z S
  • 7,039
  • 12
  • 53
  • 105
12
votes
0 answers

iOS EventKit EKCalendar unique (global) identifier

Is there a property that can be used to recognize calendars across devices? According to the Apple docs, the "calendarIdentifier" property cannot be used: A full sync with the calendar will lose this identifier. You should have a plan for dealing…
ebi
  • 4,862
  • 6
  • 29
  • 40
11
votes
6 answers

how to get ekevent EKparticipant email?

how to get ekevent EKparticipant email? EKParticipant class does not have such a attribute. Is it possible to render the native ios participants controller to show the list of participants?
Evan Lee
  • 738
  • 15
  • 36
10
votes
1 answer

Is there a way to send a calendar event via UIActivityViewController?

The title pretty much says it all. What follows is my best guess, but the event just doesn't appear at all. NSArray *items = @[string, URL, (EKEvent *)[self createCalendarEvent]]; UIActivityViewController* activity = [[UIActivityViewController…
Voltron
  • 431
  • 7
  • 19
10
votes
3 answers

Calendar Event is adding Multiple times when creating Event in IOS

I am created an Calendar Events with Alarm 5 min before the event. My Event looks like this EKEvent <0x7fd8ae554ba0> { EKEvent <0x7fd8ae554ba0> { title = E-Cold 1mg; location = ; calendar = EKCalendar…
Vidhyanand
  • 5,369
  • 4
  • 26
  • 59
10
votes
2 answers

Adding event to calendar very slow

I am simply wanting to add an event to the device's calendar. I'm using: __weak ProgramViewController *weakSelf = self; EKEventStore *store = [[EKEventStore alloc] init]; [store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL…
daihovey
  • 3,485
  • 13
  • 66
  • 110
9
votes
4 answers

getting a "Could not load source: 6" console message when calling "pushViewController"??? (code attached)

Any ideas why I would be seeing a "Could not load source: 6" console message when calling "pushViewController"? The new view seems to come up ok. The code is: Code Except: EKEventViewController *eventViewController = [[EKEventViewController alloc]…
Greg
  • 34,042
  • 79
  • 253
  • 454
9
votes
3 answers

Save event to user's calendar

How do you add an event to the user's calendar, but then allow the user to choose the calendar, etc. I have this code that works, but this adds the event to the user's default calendar. How do I allow the user to change the calendar, customize the…
Prabhu
  • 12,995
  • 33
  • 127
  • 210
9
votes
1 answer

Create Calendar, no local source even with iCloud off

I am trying to create a Calendar, not a calendar event but a Calendar. I can't get a local source and my app crashes. Here is my code: let newCalendar = EKCalendar(for: .event, eventStore: eventStore) newCalendar.title = "Some Calendar Name" let…
user979331
  • 11,039
  • 73
  • 223
  • 418
9
votes
3 answers

Add location to EKEvent IOS Calendar

How to add the location not just NSString but with latitude and longitude ,so it shows a map too in the Calendar?
Metalhead1247
  • 1,978
  • 1
  • 17
  • 28
8
votes
1 answer

EKEvent accept invitation

How do you accept an EKEvent invitation in iOS? I know it's possible as Fantastical, Calendars 5, and other calendar apps have this functionality, but I don't see an exposed non read-only property to change the user's status in regards to an…
Kyle Rosenbluth
  • 1,672
  • 4
  • 22
  • 38
1
2 3
18 19