gpt4 book ai didi

iphone - kal 压延机更改标记事件颜色

转载 作者:行者123 更新时间:2023-11-29 04:26:25 25 4
gpt4 key购买 nike

我使用 Klazuka/Kal Controller 来选择日期。当我添加来自两个不同数组的事件时。所以

基本上我有两个数组,其中有不同的日期。所以,我想区分这两个

数组在日历中显示为事件时的日期。

请建议一些摆脱这种情况的方法。谢谢。

最佳答案

CGColor 是 EKCalendar 的属性。 EKEvents 没有属性可以为其设置颜色。特定日历中的所有事件都将具有相同的颜色。

您可以创建不同的日历来区分颜色

    EKEventStore *eventStore = [[EKEventStore alloc] init];

EKCalendar *calendar = [EKCalendar calendarWithEventStore:eventStore];
calendar.title = calendarName; // set calendar name
calendar.CGColor = [UIColor grayColor].CGColor // set whichever color you want here

bool success= [eventStore saveCalendar:calendar commit:YES error:&error];

引用this

关于iphone - kal 压延机更改标记事件颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12277006/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com