objective-c - NSUbiquitousKeyValueStore 最大大小

标签 objective-c ios cocoa icloud

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/

相关文章:

iOS 7 MPVolumeView 改变大小

iphone - UIPageViewController 的 NavigationBar 不显示标题

ios - 从缓冲区创建的 NSData 创建 UIImage 返回 nil?

objective-c - 为什么我的 CATextLayer 不响应contentsGravity 属性?

objective-c - 如何将 UTF-8 字符添加到 NSString?

objective-c - 如何从 Objective-C 登录电子邮件提供商?

ios - 如何以编程方式将 ScrollView 设置到初始位置 (Swift)

ios - 如何修复由于未捕获的异常 'NSRangeException' 导致的 tableview 崩溃,原因 : '*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]'

xcode - 如何在基于文档的 Mac 应用程序中向我的文档添加自定义文档图标?

objective-c - NSAffineTransforms 没有被使用?