首页 > 解决方案 > 如何以编程方式在 Apple 的提醒应用程序中为列表对象设置图标?

问题描述

根据这篇文章,我知道 Apple 的 Reminder 应用程序中的 List 对象实际上是 EKCalendar 对象。我可以访问 List 的 title 属性并根据需要重命名 List。但是,我看不到设置或选择图标的方法,尽管实际的提醒应用程序中有图标选择,但可以从一组现有图标中选择它们。

let calendar = EKCalendar(for: .reminder, eventStore: eventStore)
calendar.title = "Board game meetings" // listName
calendar.icon //no such thing as icon property available?

那么有没有办法在提醒列表对象上设置图标?

标签: swifteventkit

解决方案


推荐阅读