ios - 如何获取 EkEvent 类型对象的 Show As 值?

标签 ios objective-c ekevent

我正在从事件存储中获取 EkEvent 类型的对象,但我无法找到该事件的 Show As 属性。
注意:我们可以在创建或编辑事件时设置 Show As = Free/Busy。

谢谢。

最佳答案

得到答案,我把它贴在这里,它可能对某人有用。

[eventObj availability]; //returns the "Show As" property for event

typedef enum {
   EKEventAvailabilityNotSupported = -1,
   EKEventAvailabilityBusy = 0,
   EKEventAvailabilityFree,
   EKEventAvailabilityTentative,
   EKEventAvailabilityUnavailable
} EKEventAvailability;

关于ios - 如何获取 EkEvent 类型对象的 Show As 值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35622735/

相关文章:

ios - 未根据给定的 EKRecurrenceRule 添加 EKEvent

ios - 如何使用 AVAssetWriter 向视频添加静态和动态叠加层?

objective-c - Objective-C : How to make Navigation bar scroll with tableview

ios - 如何在Objective-C中传递2个参数

ios - EKEventStore 获取事件返回空列表

iOS EventKit : Display calendar in a different section other than iCloud/On My iPhone

ios - 我可以从 iOS 应用程序分享多个图像和多个视频吗

android - 谷歌地图 : Embedding multiple locations and directions on a mobile app

objective-c - 如何在UIWebView中跳转pdf页面?

iphone - 如何在 Objective-C 中正确访问基类属性?