Adding EKParticipants to an EKEvent in EventKit

后端 未结 1 653
无人共我
无人共我 2021-02-12 20:58

I\'d like to programatically add a participant to an EKEvent on the iPhone.

EKParticipant\'s class reference states \"You do not create EKParticipant objects directly. S

1条回答
  •  攒了一身酷
    2021-02-12 21:34

    If you want to add attendees to an EKEvent, you must implement EKEventKitUI, and use the view controllers of that framework, this framework provide the calendar native like views so you can add attendees for your EKEvent.

    But you can't add attendees to EKEvent programmatically since the attendees is a read- only property, so you ca't set it's value by code, and since you ca't create EKParticipant object directly by code.

    may be this limitation change in coming versions of iOS.

    0 讨论(0)
提交回复
热议问题