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 that points to the record you provide. The resulting CKReference has an action of CKRecord.ReferenceAction.none.