11 Replies
      Latest reply on Feb 10, 2019 3:25 AM by jmaraujo
      dsbirch Level 1 Level 1 (0 points)

        I'm wondering if it's possible to save a new CKRecord to a custom zone and have iCloud automatically generate a record ID. I have my zones set up as I'd like. But if I save a new record to iCloud with the CKDatabase.save method, it saves it to the default zone, which is not where I want to save it. If I use a CKModifyRecordsOperation to save the record to its custom zone, it appears I first need to fully construct a CKRecord including a pre-defined record ID, and iCloud uses that record ID rather than generating one. Is there any way of achieving both of my goals other than auto-generating my own unique ID for each record?