简体   繁体   English

CloudKit中私有存储的数据是否存储在用户的iCloud帐户中?

[英]Is privately-stored data in CloudKit stored on the user's iCloud account?

My app involves users to create data and save it to their private database. 我的应用程序涉及用户创建数据并将其保存到其私有数据库。 Would the data take up space in their iCloud account, or will it be a part of my CloudKit storage quota? 数据会占用iCloud帐户的空间,还是会成为我的CloudKit存储配额的一部分? Thanks! 谢谢!

This is covered in the Designing for CloudKit document: 这在CloudKit设计文档中有所介绍:

Each container is divided into public and private databases, each of which is represented by a CKDatabase object. 每个容器分为公共和私有数据库,每个数据库由CKDatabase对象表示。 Any data written to the private database is visible only to the current user and is stored in that user's iCloud account. 写入专用数据库的任何数据仅对当前用户可见,并存储在该用户的iCloud帐户中。 Data written to the public database is visible to all users of the app and is stored in the app's iCloud storage. 写入公共数据库的数据对应用程序的所有用户可见,并存储在应用程序的iCloud存储中。

So the private database goes against the user's iCloud account and their quota. 因此私有数据库违反了用户的iCloud帐户及其配额。

The public database goes against your app's iCloud account. 公共数据库违反了您应用的iCloud帐户。 You can see how your app gets allotted space in iCloud at https://developer.apple.com/icloud/ 您可以在https://developer.apple.com/icloud/上查看您的应用在iCloud中获得分配空间的方式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM