EKEvent accept event invtation

元气小坏坏 提交于 2019-12-13 01:28:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!