Fetches all the contexts matching a predicate.
- iOS 11.4+
A predicate that the method uses to search for contexts.
A closure that the method calls with the array of contexts that match the predicate and an optional error that indicates the reason for failure, if any.
Use the predicate keys defined in
CLSPredicate to create a predicate that you pass to this method to search for contexts matching certain criteria.
For example, to print the titles of all the children of the main app context: