I use CKModifyRecordsOperation to save the recordset, and if I have an internet connection, everything works fine and the completion block is called. But when I have no connection, the completion block is not called, and I do not receive any information that my operations failed.
I use the following code in the completion block
modifyOperations.modifyRecordsCompletionBlock = ^(NSArray *savedRecords, NSArray *deletedRecordIDs, NSError *error) { if(error){ NSLog(@"Error: %@", error.localizedDescription); } item.creatorRecordId = record.recordID; };
and then I perform the operation using
[self.publicDB addOperation:modifyOperations]
Any ideas how I can get information if the operation is unsuccessful, for example, if there is no Internet connection?
source share