CKRecord(YapDatabaseCloudKit)
@interface CKRecord (YapDatabaseCloudKit)
/**
* Returns a "sanitized" copy of the given record.
* That is, a copy that ONLY includes the "system fields" of the record.
* It will NOT contain any key/value pairs from the original record.
*/
- (id)sanitizedCopy;
/**
* There was a bug in early versions of CloudKit:
*
* Calling [ckRecord copy] was completely broken.
* This forced us to use a workaround.
*
* The bug was fixed in iOS 9.
*/
- (id)safeCopy;
@end
Undocumented
-
Returns a
sanitized
copy of the given record. That is, a copy that ONLY includes thesystem fields
of the record. It will NOT contain any key/value pairs from the original record.Declaration
Objective-C
- (nonnull id)sanitizedCopy;
Swift
func sanitizedCopy() -> Any
-
There was a bug in early versions of CloudKit:
Calling [ckRecord copy] was completely broken. This forced us to use a workaround.
The bug was fixed in iOS 9.
Declaration
Objective-C
- (nonnull id)safeCopy;
Swift
func safeCopy() -> Any