iPhone 应用程序中的文件数量有限制吗?
iPhone 应用程序中的文件数量有限制吗? 我的应用程序将包含大约 2000 个或更多文本文件。我会遇到麻烦吗?
Is there a limitation on the number of files in an iphone app?
My app will contain about 2000 or more text files.Would i be in trouble?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不,你应该没问题,2000 个文件并不算多(比平常多,但仍然不是极端)。
该限制可能与目录结构可以容纳的限制相同,但可能要高得多。
即使您确实达到了该数字,您也可以使用子目录来保存文件。
注意:如果文件都很小,它们的存储效率会很低 - 您可能需要考虑将它们合并到一个文件中或使用简单的数据库来存储数据。
No, you should be fine, 2000 files isn't that many (more than usual but still not extreme)
The limit is probably the same limit as the directory structure can hold which is probably much much higher.
And even if you do hit that number, you can use subdirectories to hold your files.
NB If the files are all small they will be stored inefficiently - you might want to look into combining them into one file or using a simple database to store the data.
Apple App Store 审核指南没有提及任何有关限制的内容应用程序可以拥有的文件数量。
唯一涉及大小限制的部分是第 2.15 节
The Apple App Store Review Guidelines do not mention anything about a limit to the number of files an app can have.
The only section refering to size limits is section 2.15
您可以在应用程序中包含的文件数量没有限制,但包含数千个文件确实会大大减慢应用程序的安装速度。
使用数据库是一种解决方案。另一种选择是将数千个文件放入 .zip 存档中,并在首次运行时解压缩。
There is not a limit on the number of files you can include in your app, but including thousands of files does slow down app installation a lot.
Going with a database is one solution. Another option is putting your thousands of files into a .zip archive that you uncompress upon first run.