swift - 如何以编程方式在 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?
那么有没有办法在提醒列表对象上设置图标?
解决方案
推荐阅读
- c# - Xamarin.Android 应用程序因 NotSupportedException 而崩溃
- python - 使用python重命名json文件中的键名
- windows - SetThreadLocale 实际上做了什么?
- flutter - 是刷新小部件的方法,它是颤动的关键
- symfony - Symfony 忽略获取请求的 404 状态码
- sql-server - SQL Server 唯一约束未能丢弃重复记录
- flutter - 如何在 TextField 中仅显示双值
- java - Java Pixelbot(并将鼠标移动到这一点)
- json - 使用 Azure ARM 模板参数数组的 PowerShell 问题(我使用数组执行 ConvertFrom-Json 失败)
- azure - 用于公共应用程序的 Azure Graph 预订 API