iPhone app got rejected due to data storage issue

荒凉一梦 提交于 2019-12-13 04:23:02

问题


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

  1. Store the SQLite db in the caches folder and set the "donotbackup" flag, which will stop the file being deleted by the cache clean system.

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

  1. Keep the cache files like images etc. in the Caches folder.

Do we need to clear the cache with our code or the device will clear it automatically?

Then I am storing all the data(including images) in the application's Sqlite db file. So should I implement iCloud in my application?


回答1:


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.

Check this article

Developers forum

Apple documentation



来源:https://stackoverflow.com/questions/10733826/iphone-app-got-rejected-due-to-data-storage-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!