Contents

events(matching:)

Finds all events that match a given predicate.

Declaration

func events(matching predicate: NSPredicate) -> [EKEvent]

Parameters

Mentioned in

Return Value

An array of events that match predicate.

Discussion

Only committed events are included in the results. To include events saved using save(_:span:commit:) with the commit parameter set to false, call commit() first.

This method is synchronous. For asynchronous behavior, run the method on another thread with dispatch_async or Operation.

See Also

Searching calendars