由于数据存储问题,iPhone 应用程序被拒绝 [英] iPhone app got rejected due to data storage issue

查看:29
本文介绍了由于数据存储问题,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.

查看这篇文章

开发者论坛

Apple 文档

这篇关于由于数据存储问题,iPhone 应用程序被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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