Creates and returns a predicate for finding events in the event store that fall within a given date range.
- iOS 4.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- watchOS 2.0+
The start date of the range of events fetched.
The end date of the range of events fetched.
The calendars to search, as an array of
nilindicates to search all calendars.
A simple query predicate that matches events within the specified date range.
Use this method to create a predicate for use with
enumerate. The events returned using this predicate are in the default time zone. For performance reasons, this method matches only those events within a four year time span. If the date range between
end is greater than four years, it is shortened to the first four years.