0

従業員ごとに 1 つずつ、すべての従業員のカレンダーの統合ビューを提供する複数のカレンダーが必要な iPad アプリがあります。

Kai または EventKit はこの要件をサポートしていますか? そうでない場合、カレンダー API はありますか?

4

1 に答える 1

1

Event Kit はこれを行います... myEventStore と呼ばれる EKEventStore がある場合、次のようにカレンダー配列を定義します。

NSArray *calendarArray = myEventStore.calendars;

このようなイベントを取得します

NSPredicate *fetchAllEvents = [self.myEventStore predicateForEventsWithStartDate:[NSDate distantPast] endDate:[NSDate distantFuture] calendars:calendarArray]; //you can modify this predicate, just keep calendar:calendarArray
NSArray *allEvents = [self.myEventStore eventsMatchingPredicate:fetchAllEvents];
于 2012-06-07T18:36:11.947 に答える