Adding EKParticipants to an EKEvent

1.6k views Asked by At

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)"

1

There are 1 answers

2
Léo Natan On

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.