gpt4 book ai didi

ios - 依靠 NSUbiquitousKeyValueStore 来存储基本数据是否安全?

转载 作者:可可西里 更新时间:2023-11-01 03:59:14 31 4
gpt4 key购买 nike

我了解到 NSUbiquitousKeyValueStore 始终可用,在 no iCloud account 时也是如此已成立。这让我相信我可以安全地将基本数据存储在其中,而无需在 NSUserDefaults 中保留副本。

然而,在他们的documentation , Apple 说了以下内容:

Avoid using this class for data that is essential to your app’s behavior when offline; instead, store such data directly into the local user defaults database.

我是否忽略了不使用 NSUserDefaults(或其他离线商店)作为备份时可能出现的问题?还是 Apple 保护过度,依赖 NSUbiquitousKeyValueStore 是否安全?

最佳答案

Julien commented关于这个问题的以下内容:

What this means is that you should not rely on this store to be your local truth but more of a simple sync communication channel between your devices.

关于ios - 依靠 NSUbiquitousKeyValueStore 来存储基本数据是否安全?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23662856/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com