创建sqlite文件的合适位置是什么? [英] What is suitable location for creating sqlite file?
问题描述
实际上,我的应用被应用商店拒绝了,因为我在文档目录中存储了大约 9 MB 的数据.
Actually, My app got rejected from app store because i am storing about 9 MB data in document directory.
有什么更好更合适的位置存储图像缓存和创建 sqlite 数据库文件?
What is better and suitable location store image cache and to create sqlite database file?
推荐答案
关注区域是 iOS 5.0,它支持 iCloud,但不识别不备份"属性.在这种情况下,文档目录中应用程序的所有数据很可能会备份到 iCloud.对于低于 5.x 的 iOS 版本:
The concern area is the iOS 5.0, which supports iCloud, but does not recognizes "do not backup" attribute. In this case, all the data of the app inside documents directory is likely to get backed up to iCloud. For the iOS versions below 5.x:
the iCloud backup is not valid.
the "do not back up" flag is not relevent. It would not produce any warnings during compilation.
因此,数据可以保存在文档目录中,并在所有版本的内容(文件/文件夹)中适当添加不备份"标志.问题仅适用于 5.0 版本.
Hence the data can be kept in the documents directory, with "do not back up" flag appropiately added to the contents (files/folders), for all the versions. The problem is for the version 5.0 only.
这篇关于创建sqlite文件的合适位置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!