Instance Method

predicateForIncompleteRemindersWithDueDateStarting:ending:calendars:

Fetches incomplete reminders in a set of calendars within an optional range.

Declaration

- (NSPredicate *)predicateForIncompleteRemindersWithDueDateStarting:(NSDate *)startDate ending:(NSDate *)endDate calendars:(NSArray<EKCalendar *> *)calendars;

Parameters

startDate

The starting bound of the range to search.

endDate

The ending bound of the range to search.

calendars

An array of calendars to search.

Return Value

The created predicate to be used for fetchRemindersMatchingPredicate:completion:.

Discussion

Pass nil for startDate to find all reminders due before endDate. Similarly, pass nil for both startDate and endDate to get all incomplete reminders in the specified calendars.