问题描述
我的应用由于数据存储问题而被拒绝.谷歌搜索后,我有了这些想法.请确认我的假设正确与否.
My app was rejected due to data storage problems.After googling, I got these ideas. Please confirm my assumptions are correct or not.
- 将SQLite数据库存储在缓存文件夹中,并设置"donotbackup"标志,这将阻止文件被缓存清理系统删除.
但是,如果我将应用程序更新到较新的版本,数据库会发生什么?有失去数据库的机会吗?
But what will happen to the db if I update the app to a newer version? Any chance to loss the db?
- 保留诸如Caches文件夹中的图像之类的缓存文件.
我们是否需要使用代码清除缓存,否则设备将自动清除缓存?
Do we need to clear the cache with our code or the device will clear it automatically?
然后,我将所有数据(包括图像)存储在应用程序的Sqlite db文件中.那我应该在我的应用程序中实现iCloud吗?
Then I am storing all the data(including images) in the application's Sqlite db file. So should I implement iCloud in my application?
推荐答案
您必须对要保留的文件使用请勿备份"属性,其他文件则要缓存文件夹.当应用程序终止时,缓存文件夹将被自动删除.
You must use "do not backup" attribute to files that you would to keep, other files place to cache folder.Cache folder will be automatically erased when application terminates.
查看本文
这篇关于iPhone应用因数据存储问题而被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!