0
我使用Klazuka /卡爾控制器,用於選擇dates.when我從兩個不同的添加事件arrays.soKAL壓延改變標記事件顏色
基本上我有兩個陣列,其中有不同的日期。所以,我想區分這兩個
數組日期時,他們顯示爲日曆中的事件。
請建議一些方法擺脫這一點。謝謝。
我使用Klazuka /卡爾控制器,用於選擇dates.when我從兩個不同的添加事件arrays.soKAL壓延改變標記事件顏色
基本上我有兩個陣列,其中有不同的日期。所以,我想區分這兩個
數組日期時,他們顯示爲日曆中的事件。
請建議一些方法擺脫這一點。謝謝。
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
灰色。但紅色,黃色和其他支持。很奇怪。 – frank