Initializer

init(coder:)

Initializes and returns a share object.

Declaration

init(coder aDecoder: NSCoder)

Parameters

aDecoder

The NSCoder representation of this CKShare.

Return Value

An initialized share object.

Discussion

When saving a newly created CKShare, you must save the share and its rootRecord in the same CKModifyRecordsOperation batch.

See Also

Creating a Share

init(rootRecord: CKRecord)

Initializes and returns a share object.

init(rootRecord: CKRecord, shareID: CKRecord.ID)

Initializes and returns a share object.