Instance Method

fetchRemindersMatchingPredicate:completion:

Fetches reminders matching a given predicate.

Declaration

- (id)fetchRemindersMatchingPredicate:(NSPredicate *)predicate completion:(void (^)(NSArray<EKReminder *> *reminders))completion;

Parameters

predicate

The search predicate.

completion

An array of the matched reminders passed by reference.

Return Value

A value to be used in cancelFetchRequest: to cancel the request later if desired.

Discussion

Only reminders that have been committed are included in the results. Reminders saved using saveReminder:commit:error: with the commit parameter set to NO must call commit: beforehand to be included.

This method fetches reminders asynchronously.

See Also