Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚开始使用 CloudKit 并计划将数据存储在公共 CloudKit 数据库中。我需要的一项功能是显示有关谁创建了记录的信息,并让该所有者修改或删除他们自己的记录。
到目前为止,我读过的教程都没有谈到这一点。
这是怎么做到的?
只需像这样从 CKRecord 中获取它:
record.recordID record.recordType record.creationDate record.creatorUserRecordID record.modificationDate record.lastModifiedUserRecordID record.recordChangeTag
可以在 CloudKit 仪表板中设置可以创建/更新/删除记录的用户(公共、已验证、所有者)的权限