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?
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.
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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With