Initializes and returns a record in the specified zone.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 3.0+
A string reflecting the type of record that you want to create. Define the record types that your app supports, and use them to distinguish between records with different types of data. This parameter must not be
nilor contain an empty string.
Record type names consist of one or more alphanumeric characters and start with a letter. Type names may include underscore characters if they do not start with that character. Spaces are not allowed in record type names.
The ID of the record zone in which to place the record.
An initialized record object, or
nil if the record cannot be created.
Use this method to initialize a new record object in the specified record zone.
Upon creation, the new record contains no data and exists only in memory on the local device. Save the record using a
CKModify object or using the saveRecord:completion: method of
CKDatabase to transfer the record’s contents to the server.