ckoperation

CloudKit CKdatabaseOperation does not throw error in simulator depending on .qualityOfService setting

家住魔仙堡 提交于 2020-01-14 04:44:04
问题 I am basically messing around with CloudKit. I have 2 questions that I would like some help/education with. (1) When I try to run the following code in the simulator with WiFi Turned off (To simulate network unavailability), I expect it to throw network unavailable error. However, cloudKit does not throw any error and the function does not do anything either i.e. does not execute either of the print statements inside the modifyRecordZonesCompletionBlock self.container = CKContainer.default()

How to sync records between Core Data and CloudKit efficiently

本小妞迷上赌 提交于 2019-11-30 00:04:32
I'm currently learning how to use CloudKit Framework and lack of documentation or examples showing how to sync Core Data and CloudKit. I have watched all WWDC videos (2014, 2015, 2016) Dedicated to CloudKit, but none of them telling us how to implement syncing with Core Data. I can't find any fresh examples, tutorial or books, showing how to implement this syncing. I know that it is effective to use Operations API by CloudKit (not Convenience API) and to Subscribe to changes as it said in the new WWDC 2016 videos, dedicated to CloudKit, but mapping with CoreData is a real problem. For example,

How to sync records between Core Data and CloudKit efficiently

為{幸葍}努か 提交于 2019-11-28 21:05:30
问题 I'm currently learning how to use CloudKit Framework and lack of documentation or examples showing how to sync Core Data and CloudKit. I have watched all WWDC videos (2014, 2015, 2016) Dedicated to CloudKit, but none of them telling us how to implement syncing with Core Data. I can't find any fresh examples, tutorial or books, showing how to implement this syncing. I know that it is effective to use Operations API by CloudKit (not Convenience API) and to Subscribe to changes as it said in the