Afnan
Afnan

Reputation: 898

Adding EKParticipants to an EKEvent

I'd like to programatically add a participant to an EKEvent on iOS.

EKParticipant's class reference states "You do not create EKParticipant objects directly. Send attendees to an EKEvent object to get an array of EKParticipant objects.".

EKEvent's class reference states that the 'attendees' member (NSArray) is "The attendees associated with the event, as an array of EKParticipant objects. (read-only)"

Upvotes: 2

Views: 1630

Answers (1)

Léo Natan
Léo Natan

Reputation: 57040

Not possible. This is done deliberately by Apple so only the user can create or edit meetings' invitees. The only way is to display a EKEventEditViewController and let the user edit the list themselves.

You can delve into private API, but you risk a 99% app store validation failure.

Upvotes: 3

Related Questions