ios – iCloud用于保存相当频繁的游戏状态变化

我想在我的应用程序中实现iCloud:它是一款简短的游戏.一轮需要3-5分钟,之后你会获得xp,硬币等等.它实际上只有5个键值对,并且只在每一轮后更新.抛开问题,apples documentation表示:

The key-value store is intended for storing data that changes
infrequently. If the apps on a device make frequent changes to the key-value store,the system may defer the synchronization of some changes in order to minimize the number of round trips to the server. The more frequently apps make changes,the more likely it is that later changes will be deferred and not show up on other devices right away.

鉴于我的数据的简单性和大小,我仍然会去键值存储,但在我读完之后我不太确定它. Apple suggests用于复杂应用程序状态的文档存储和用于简单应用程序状态的键值存储.
所以我的问题是:

当数据频繁更改时,即使我的数据很简单,使用文档存储会更好吗?

解决方法

关键的价值是一团糟.它不能与icloud快速同步,同步由操作系统控制.太令人沮丧了. 使用文档/核心数据

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...