Initializer

init(zoneName:ownerName:)

Initializes and returns a record zone ID with the specified name and owner.

Declaration

convenience init(zoneName: String = CKRecordZone.ID.defaultZoneName, ownerName: String = "__defaultOwner__")

Parameters

zoneName

The name that identifies the record zone. The string must contain only ASCII characters and must not exceed 255 characters. To specify the default zone of the current database, pass the CKRecordZoneDefaultName constant for this parameter. This parameter must not be nil or the empty string.

ownerName

The user who created the record zone. To specify the current user, use the CKOwnerDefaultName constant. If you specify nil or an empty string for this parameter, this method throws an exception.

Return Value

An initialized record zone ID object or nil if the object cannot be created.

Discussion

Use this method to create a record zone ID for use in creating or fetching a record zone.

See Also