Fetches all unified contacts matching the specified predicate.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- watchOS 2.0+
The predicate to match against.
The properties to fetch in the returned
CNContactobjects. You should fetch only the properties that you plan to use. Note that you can combine contact keys and contact key descriptors.
Error information, if an error occurred.
An array of
CNContact objects matching the predicate.
If no matches are found, this method returns an empty array (or
nil in case of error). Use only the predicates from the
CNContact class predicates. Compound predicates are not supported by this method. Due to unification, the returned contacts may have different identifiers than you specify. To fetch all contacts, use