次のコードとしてカレンダー イベントを取得します。
NSDate *startDate1 = [NSDate date];
NSDate *endDate1 = [NSDate distantFuture];
NSPredicate *predicate = [eventStore predicateForEventsWithStartDate:startDate1 endDate:endDate1 calendars:calendarArray];
NSArray *events = [eventStore eventsMatchingPredicate:predicate];
しかし、繰り返しイベントを追加すると、頻度が毎週の場合、「イベント」には 209 個のオブジェクトが含まれます。イベントの頻度が 2 週間ごとの場合、「イベント」には 105 個のオブジェクトが含まれます。時間を計算すると、これも 4 年です。
イベントを取得するにはどうすればよいですか? 1 つの繰り返しイベントには 1 つのオブジェクトしかありませんか?
// event.eventIdentifier を使用してテストしています...