Add participant to an event in iOS

前端 未结 3 1950
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 01:22

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 obje

3条回答
  •  暖寄归人
    2021-01-01 02:00

    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!

提交回复
热议问题