Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add participant to an event in iOS

In the EKParticipant Class reference, " Send attendees to an EKEvent object to get an array of EKParticipant objects. " OK, buy how can I send attendees to an EKEvent object?

Someone give example code?

like image 874
mozkarakoc Avatar asked Jun 01 '12 15:06

mozkarakoc


People also ask

Why can't I add invitees on my iPhone calendar?

When you create a reminder, you can choose to store it in iCloud or on your iOS device. If iCloud is not your default for Calendars, you'll be unable to add invitees.

Can I share a calendar event with another iPhone user?

Tap the Calendars button at the bottom of your screen. Tap the “i” info button next to the calendar you want to share. Under the “Shared With” section, select “Add Person.” Type the name of the person you want to share your calendar with.


1 Answers

The iOS reference says the following:

You do not create EKParticipant objects directly. Send attendees to an EKEvent object to get an array of EKParticipant objects.

Unfortunately that attendees property is read-only and the ways that these EKParticipant's come into existence is omitted from the reference. It has lead me to believe that the only way to create new participants, is by using the EKEventEditViewController (from the EventKitUI framework).

Very unsatisfying, I know, so please let there be someone else with a better answer!

like image 103
epologee Avatar answered Sep 23 '22 01:09

epologee