EKEvent接受事件邀请 [英] EKEvent accept event invtation

查看:93
本文介绍了EKEvent接受事件邀请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何为已邀请当前用户的EKEvent设置接受/可能/拒绝参与者状态?

I wonder how can I set accept/may be/decline participant status for an EKEvent for which current user has been invited?

我可以检查参与者集,但是EKEvent找不到我可以设置其状态的东西.

I can check the participant set but EKEvent found nothing for which I can set its status.

推荐答案

每个EKParticipant都会维护状态(不在EKEvent本身上),但是您不能通过编程方式设置它:[EKParticipant participantStatus]是只读的.根据Apple文档,

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.

最接近的近似值是使用EventKitUI组件显示事件,并允许用户视需要更新事件.

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.

这篇关于EKEvent接受事件邀请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆