Instance Method

initWithZoneID:

Initializes and returns a record zone object using the specified ID.

Declaration

- (instancetype)initWithZoneID:(CKRecordZoneID *)zoneID;

Parameters

zoneID

The ID for the new zone. This parameter must not be nil.

Return Value

The new custom zone, or nil if the zone cannot be created.

Discussion

Use this method when you want to create a new record zone based on the information in a zone ID. After creating the zone, save it to the server using a CKModifyRecordZonesOperation object or the saveRecordZone:completionHandler: method of the CKDatabase class.

Do not use this method to create a CKRecordZone object corresponding to a zone that already exists in the database. If the zone exists, fetch it using a CKFetchRecordZonesOperation object or the fetchRecordZoneWithID:completionHandler: method of the CKDatabase class.

See Also

Initializing a Record Zone

- initWithZoneName:

Initializes and returns a record zone object with the specified name.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software