How to find a CKRecord based on its CKRecordID?

This sounds like a silly question but I know how to search through a CKRecord table based on a value from one of its columns. But I don't know how to search for a record with a certain RecordID. I have the record's RecordID and now need to find it and load up it's data once it's found.

Answered by just.do.it in 231163022

Hi,


what about the fetchRecordWithID:completion: method of the CKDatabase class or the CKFetchRecordsOperation class and it's initWithRecordIDs:(NSArray<CKRecordID *> *)recordIDs method.

Accepted Answer

Hi,


what about the fetchRecordWithID:completion: method of the CKDatabase class or the CKFetchRecordsOperation class and it's initWithRecordIDs:(NSArray<CKRecordID *> *)recordIDs method.

I used fetchRecordWithID:completion:. Thanks for the great suggestion.

How to find a CKRecord based on its CKRecordID?
 
 
Q