Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown parameter usage CloudKit - iOS 10

Tags:

ios10

cloudkit

Does anyone know what the String field is intended for in this closure public var recordWithIDWasDeletedBlock: ((CKRecordID, String) -> Void)?. I have no idea what it is for, and the documentation is incomplete at the moment. Any ideas?

like image 550
DaveAMoore Avatar asked Jan 05 '23 19:01

DaveAMoore


1 Answers

The second parameter of CKFetchRecordZoneChangesOperation's recordWithIDWasDeletedBlock is the recordType of the deleted CKRecord.

The Objective-C declaration is:

@property(nonatomic, copy, nonnull) void (^recordWithIDWasDeletedBlock)(CKRecordID *recordID, NSString *recordType);

(A tip for the new documentation is that the Swift declaration does not always list variable names (ex. for tuples), but the Objective-C declaration does. In cases where the documentation is currently incomplete, this can be quite handy.)

like image 200
breakingobstacles Avatar answered Mar 07 '23 09:03

breakingobstacles