Fetches all record zones asynchronously, with a low priority, from the current database.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The block to execute with the results. Your block must be capable of running on any thread of the app and must take the following parameters:
An array of
CKRecordobjects. The returned array always contains at least one record zone corresponding to the default zone.
An error object, or
nilif the record zones were fetched successfully. Use the information in the error object to determine whether a problem has a workaround.
Use this method to locate the record zones in this database. Record zones represent groups of records with a common purpose.
This method fetches record zones with a low priority, which may cause the task to execute after higher-priority tasks. To fetch record zones more urgently, create a
CKFetch object with the desired priority.