CloudKit Zones Without Records

Hello,

I'm using CloudKit for sharing CoreData objects. In my app, any time a user share an object (that previously doesn't has shared) I create a new sharing zone with the CKRecord.

Also I'm using UICloudSharingController, so in this page when the user select "Stop sharing" (from the UICloudSharingController) it works, and all the items created in this Zone persist on it.

I have two questions or doubts:

  • When I delete all the items in the zone, the zone doesn't delete it self. So I have many Zones wihout items. I have to delete manually detecting what are the last item on it?
  • If I don't want to share this (I stop sharing), exist any "easy" way to move all the items to my "default zone"?

Thanks in advance, David

Answered by DavidManso in 749173022

As I can experiment. When we delete all Records in a zone and stop sharing (never mind the order), it delete itself.

Accepted Answer

As I can experiment. When we delete all Records in a zone and stop sharing (never mind the order), it delete itself.

CloudKit Zones Without Records
 
 
Q