Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何EKEvent为当前已被邀请的用户设置接受/可能是/拒绝参与者状态?
EKEvent
我可以检查参与者集,但EKEvent找不到可以设置其状态的任何内容。
每个 EKParticipant 都维护状态(不在 EKEvent 本身上),但您不能以编程方式设置它:[EKParticipant participantStatus]是只读的。根据 Apple 文档,
[EKParticipant participantStatus]
Event Kit 不能将参与者添加到事件中,也不能更改参与者信息。
最接近这种情况的方法是使用 EventKitUI 组件启动事件,并允许用户在他们认为合适的时候更新事件。