Add participant to an event in iOS

旧时模样 提交于 2019-11-30 09:41:09

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!

The only way WeekCal can do this legally (via API contract) is by talking to the iCloud servers to add the attendees, which then get synced back down to the device. I'd love to see proof that it is touching the iOS event store...

You would always fail to create attendees by using EventKit this version because Apple has not get related APIs public.

But you can use class-dump to output EventKit header files to see all interfaces even included the private and try it out one by one.

I've seen an app called Week Cal could add attendees into iOS event store, and it is an Appstore-sale app and no jailbroken needed. So I believe that there is a way to add attendees into event store in current iOS and would not be rejected by Apple.

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