问题
I wonder how can I set accept/may be/decline participant status for an EKEvent
for which current user has been invited?
I can check the participant set but EKEvent
found nothing for which I can set its status.
回答1:
Status is maintained per each EKParticipant (not on the EKEvent itself), but you can't set it programmatically: [EKParticipant participantStatus]
is read only. Per the Apple docs,
Event Kit cannot add participants to an event nor change participant information.
The closest approximation of this would be to bring up the event using EventKitUI components and allow the user to update the event as they see fit.
来源:https://stackoverflow.com/questions/22962832/ekevent-accept-event-invtation