0

2 つの異なる配列からイベントを追加するときは、日付の選択に Klazuka/Kal コントローラーを使用します。

基本的に、日付が異なる2つの配列があります。だから、私はこれらの2つを区別したい

カレンダーでイベントとして表示される日付を配列します。

これから抜け出す方法を提案してください。ありがとうございます。

4

1 に答える 1

1

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];

これを参照

于 2012-09-05T09:29:31.360 に答える