NSUbiquitousKeyValueStore 的最大大小是多少?
我见过相互矛盾的报告,例如 current iOS documentation says 1mb :
但是,如果您在 Google 上搜索,您会看到许多关于最大大小为 64kb 的引用:
我很确定答案是它曾经是 64kb 并且在某个时候增加了。 有谁知道是否是这种情况,如果是这样,何时进行更改以及它是否影响所有设备或仅影响特定 iOS 上的设备(例如 5.1 而不是 5.0?)
最佳答案
苹果是这样说的:
The key-value store is not intended for storing large amounts of data. It is intended for storing configuration data, preferences, and small amounts of app-related data
这让我认为,如果您问这个问题,您可能不应该使用键值存储。
话虽如此,Apple 刚刚 updated their documentation具有更新、更高的限制:
We've increased the storage limits for iCloud Key Value Store so you can provide an even better experience in your app. Now, the total Key Value Storage limit is 1 MB per app, the single key limit is 1 MB, and the total key limit is 1024.
我不确定那是什么时候生效的,但这可能解释了各种来源之间的差异。
关于objective-c - NSUbiquitousKeyValueStore 最大大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10752617/