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 Id object for the record that you want to set as this record’s parent.
Discussion
This method creates and sets a CKRecord.Reference object that points to the record you provide. The resulting CKReference has an action of CKRecord.ReferenceAction.none.