IOS应用程序文档中是否存在文件大小限制 [英] Is there any limit of file size in the Document of IOS app
问题描述
我想编写一个应用程序来从网上下载和管理文件。如果我只是将文件放在文档中。文件大小是否有限制,或者我可以加载另一个应用程序来读取目录中的文件吗?
I want to write a app to download and manage files from the web.If I just put the file in the Document. Is there any limit of file size or can I load another app to read the file in the Directory?
推荐答案
我不知道我认为除了设备上剩余的可用空间量之外,您可以在应用的文档目录中放置多大的文件是有限制的。
I don’t think there is a limit to how big a file you can put in your app’s Documents directory other than the amount of free space left on the device.
不,其他应用不能访问应用程序的Documents目录的内容 - 这是沙盒系统的全部目的。您可以做的是将UIDocumentInteractionController类与您下载的文件一起使用,向用户显示可以处理打开该文件的应用程序列表。
No, other apps cannot access the contents of your app’s Documents directory—that’s the entire purpose of the sandboxing system. What you can do is use the UIDocumentInteractionController class with a file you’ve downloaded to present the user with a list of apps that can handle opening that file.
这篇关于IOS应用程序文档中是否存在文件大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!