Fetches all user records that match an entry in the user’s address book.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- watchOS 3.0+
The block to execute with the results. Your block must be capable of executing on any thread of the app. This block returns no value and takes the following parameters:
An array of
CKUserobjects that match entries in the user’s contacts.
An error object if a problem occurs or
nilif the fetch completed successfully.
This method searches for the user asynchronously and with a low priority. If you want the task to execute with a higher priority, create a
CKDiscover object and configure the desired priority.