I use EventKit in my application and would like to know which account the calendar belongs to.
The iPhone Calendar app displays all calendars grouped by account with the account name, for example, “ myname@me.com ” or “Gmail myname”. Where can I get the names of these accounts?
I can get the EKCalendar list from EKEventStore , and I can get the title of each calendar, but I have no idea where to get the account name from. Is there an official API for this? How else can I get this information? In some applications on the App Store, account names are displayed, so there must be a way (which also slips through the approval process ...)
Thank you Thomas
Update: Somewhere else I found links to private property. Before I start looking for this myself, does anyone know what the name of this property is?
Elsewhere, people also suggested parsing description (including an account), but this is not a very safe or elegant way, so I would like to avoid that.
Update 2: I found out that there is private property (and its name), and it seems to be working fine.
source share