简体   繁体   English

iOS文档目录大小限制

[英]iOS Documents Directory size limit

I am creating FTP download app that downloads into Documents Directory, and I have simple questions. 我正在创建下载到Documents Directory的FTP下载应用程序,我有简单的问题。 Does the Documents Directory have size limit and does the download files stay there permanently until the app is removed? 文档目录是否有大小限制,并且下载的文件会永久保留在那里,直到删除该应用程序?

I don't know much about this, I had seen a comment in discussions.apple.com like: There is a limit of 2 GB. 我不知道很多关于这一点,我已经看到在discussions.apple.com评论一样: 有2 GB的限制。

https://discussions.apple.com/message/7599983?messageID=7599983#7599983?messageID=7599983 https://discussions.apple.com/message/7599983?messageID=7599983#7599983?messageID=7599983

Files in the document directory stay there permanently until the app is removed. 文档目录中的文件会永久保留在该目录中,直到删除该应用程序为止。

============EDIT========= ============编辑=========

the fact is: 2Gb is the app size limit, and the app's directory can more than 2Gb; 事实是:2Gb是应用程序的大小限制,并且应用程序的目录可以超过2Gb; I found it from apple doc is here , search keyword "2G" 我从苹果文档中找到它,搜索关键字“ 2G”


I don't know if apple did some change, I use an app named PPTV, it can store videos from server, and more than 2Gb; 我不知道苹果是否做了一些改变,我使用了一个名为PPTV的应用程序,它可以存储来自服务器的视频,并且可以存储超过2Gb的视频; what happens? 怎么了?

You should use Cache Directory if you want to cache anything without user's action or your app will get rejected if you dont follow the instructions: 如果要缓存任何内容而无需用户采取任何措施,则应使用“缓存目录”,否则,如果不遵循以下说明,您的应用将被拒绝:

http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/PerformanceTuning/PerformanceTuning.html http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/PerformanceTuning/PerformanceTuning.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM