iPhone应用因数据存储问题而被拒绝 [英] iPhone app got rejected due to data storage issue

查看:145
本文介绍了iPhone应用因数据存储问题而被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用由于数据存储问题而被拒绝. 谷歌搜索后,我有了这些想法.请确认我的假设正确与否.

My app was rejected due to data storage problems. After googling, I got these ideas. Please confirm my assumptions are correct or not.

  1. 将SQLite数据库存储在缓存文件夹中,并设置"donotbackup"标志,这将阻止文件被缓存清理系统删除.

但是,如果我将应用程序更新到较新的版本,数据库会发生什么?有失去数据库的机会吗?

But what will happen to the db if I update the app to a newer version? Any chance to loss the db?

  1. 保留诸如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.

查看本文

开发者论坛

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆