EKEventstore and unique calendar identifier

I have a question about the EKCalendar calendarIdentifier property. Is this identifier unique at the global level or at the level of each source? For instance. can I safely store the CalendarIdentifier in my application to smoothly identify the calendar for all the calendars in the event store (no matter which EKSource they are in), or do I also need to save the EKSource identifier associated with the calendar?

I have a calendar selection function in my application, and I want to safely store and load the correct calendar (in the correct account) when the application restarts.

Thanks in advance.

+6
source share
1 answer

From my personal experience and from the description of the property in the link, the EKCalendar class is local to EKEventStore . EKCalendar has the EKSource property as its property at the same level as the calendarIdentifier line.

+1
source

Source: https://habr.com/ru/post/901417/


All Articles