Instance Method

setParent(_:)

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

Declaration

func setParent(_ parentRecordID: CKRecord.ID?)

Parameters

parentRecordID

The CKRecord.ID object associated with the record (CKRecord) that you want to set as the parent of this record.

Discussion

This method creates and sets a CKRecord.Reference object for the record associated with the CKRecord.ID passed in. The resulting CKRecord.Reference object will have its action set to CKRefereneActionNone.

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?)

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