在iOS 5应用程序中保存文件的位置? [英] Where to save files in iOS 5 applications?

查看:106
本文介绍了在iOS 5应用程序中保存文件的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说苹果改变了一些事情,关于iOS 5中的内存管理。那么在最新的地方,在我的新iOS 5应用程序中保存应用程序数据和文件 - 哪里不丢失数据?

I heard that apple changed some things, concerning the memory management in iOS 5. So where is the best place, to save app data and files in my new iOS 5 application - without losing data?

推荐答案

要添加@Srikar所说的内容,只有在可以重新生成数据时才将数据保存在缓存中。已经发现,当设备内存不足时,它会清除应用程序的缓存目录。这已在各种博客文章和开发人员中得到证实。

To add to what @Srikar have said, only save data in Caches if you can regenerate it. It has been found that when the device is running short on memory it clears off the app's cache directory. This has been confirmed on various blog post and developers.

这篇关于在iOS 5应用程序中保存文件的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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