Instance Method

setParent(_:)

Creates and sets a reference object for a parent from its record.

Declaration

func setParent(_ parentRecord: CKRecord?)

Parameters

parentRecord

A record that you want to set as the parent to this record.

Discussion

This method creates and sets a CKRecord.Reference object for the CKRecord passed in. The resulting CKReference will have its action set to CKRecord_Reference_Action.none.

See Also

Sharing Records

var parent: CKRecord.Reference?

A reference to the parent record to this record.

var share: CKRecord.Reference?

A reference to the share associated with the sharing of this record.

func setParent(CKRecord.ID?)

Creates and sets a reference object for a parent from the parent’s record ID.