简体   繁体   English

EKEventstore和唯一的日历标识符

[英]EKEventstore and unique calendar identifier

I have a question about EKCalendar's calendarIdentifier property. 我对EKCalendar的calendarIdentifier属性有疑问。 Is this ID unique on a global level, or on a per-source level? 此ID在全局级别或每个源级别上是唯一的吗? Eg can I safely store the calendarIdentifier in my app to smoothly identify a calendar across all calendars in the event store (no matter what EKSource they're in) or do I also need to save the EKSource's identifier associated with the calendar? 例如,我可以安全地将calendarIdentifier存储在我的应用程序中,以便在事件存储中的所有日历中顺利识别日历(无论他们在哪个EKSource中),还是还需要保存与日历相关联的EKSource标识符?

I have a calendar selection feature in my app, and I want to safely store and load the correct calendar (within the correct account) upon app restart. 我的应用程序中有一个日历选择功能,我想在应用程序重启时安全地存储和加载正确的日历(在正确的帐户内)。

Thanks in advance. 提前致谢。

From my personal experience and from the description of the property in EKCalendar's class reference it is local to the EKEventStore . 从我个人的经验和从属性的描述EKCalendar的类引用是本地的EKEventStore An EKCalendar has an EKSource as it's property at the same level as the calendarIdentifier string. EKCalendar具有EKSource因为它的属性与calendarIdentifier字符串处于同一级别。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 EKEventStore不会通过外部或本地标识符返回Exchange日历项目 - EKEventStore will not return Exchange Calendar items by external or local identifier 将 EKEvent 保存到 EKEventStore 时出错(导出到日历) - Error when saving EKEvent into EKEventStore (exporting to calendar) EKEventStore 对象问题 - EKErrorDomain“未设置日历” - EKEventStore object issue - EKErrorDomain "No calendar has been set" 从iOS日历应用程序中删除EKEventStore中的EKEvent - Delete EKEvent from EKEventStore from iOS Calendar App EKEventStore.calendars返回不存在的“日历”对象 - EKEventStore.calendars returns non-existing “calendar” object EKEventStore:仅从开始日期起未在设备日历中添加事件 - EKEventStore : Event is not adding in Device Calendar from Start Date only NSFetchedResultsController sectionNameKeyPath等效于EKEventStore从iPhone日历获取的事件 - NSFetchedResultsController sectionNameKeyPath equivalent for EKEventStore fetched events from iPhone Calendar 需要帮助将唯一的自定义标识符保存在iOS日历的事件内(快速) - Need help saving a unique custom identifier inside an event in iOS Calendar (Swift) iCloud唯一标识符 - iCloud unique identifier iOs上的phonegap的唯一标识符 - Unique identifier for phonegap on iOs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM