How to access an EKCalendar's `account` property

前端 未结 3 1828
执笔经年
执笔经年 2021-01-19 05:13

Take a look at the documentation for EKCalendar. It\'s pretty simple, it has five properties, only one of which is a string called title. Now if you have multip

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 05:29

    And on iOS6? It seems the private property [EKCalendar accountName] vanished. And [EKCalendar description] does not contain account anymore. :

    EKCalendar <0x200f50e0> {title = test@gmail.com; type = Exchange; allowsModify = YES; color = #44A703;}

    The [EKCalendar source] provides a EKSource object, that has a title but this is not the name I typed when I created the account but seems to be a more generic name, e.g. Exchange, Other, CalDAV.

提交回复
热议问题