如何使用CKReference cloudkit IOS Swift为数据库创建良好的结构?

问题描述 投票:-2回答:1

我正在创建基于cloudkit的应用程序,其中我必须创建数据库结构。我陷入了CKReference。我如何使用CKReference创建良好的数据库结构

cloudkit
1个回答
0
投票

“设计CloudKit架构以存储要保留的应用程序对象模型的各个部分。如果要从头开始实现应用程序,请使用Model-View-Controller设计模式将用户界面视图与模型对象分开然后,设计一个架构,以有效地存储要存储在iCloud中的对象模型的各个部分。“

尝试这些链接(第二个链接可能直接回答您的问题):

https://developer.apple.com/documentation/cloudkit/ckreference

https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitQuickStart/CreatingaSchemabySavingRecords/CreatingaSchemabySavingRecords.html

© www.soinside.com 2019 - 2024. All rights reserved.