Xcode 5引入了资产目录,这看起来很酷。但我没有找到很多有关它的信息。具体来说,我感兴趣的是资产目录的使用是否对应用程序的兼容性有任何影响。
Xcode 5 introduced Asset Catalog, which seems very cool. However I haven't find much information about it. Specifically, I'm interested whether the usage of Asset Catalog has any impact on the app regarding its compatibility.
是资产目录iOS 7的特定功能(即iOS必须能够处理它)还是它只是Xcode的便利工具?
Is Asset Catalog iOS 7 specific feature (i.e. iOS has to be able to handle it) or it is just convenience tool of Xcode?
此外,我将感谢任何相关的信息资源/链接。
Also, I will be grateful for any relevant information resources / links.
感谢您的回答
推荐答案是的,它是向后兼容的。
Yes, it is backwards compatible.
文档说: / p>
The documentation says:
Xcode 5为您的项目的部署目标根据提供不同的资产目录功能:
Xcode 5 provides different functionality for asset catalogs depending on the deployment target for your project:
- 对于所有项目,可以使用集合名称加载单个图像。
- 对于部署目标为iOS 7的项目,Xcode您的资产会编入运行时二进制文件格式,从而减少应用程序的下载时间。
新的二进制文件格式仅在部署目标设置为iOS 7时使用。否则,默认情况下会将所有单个图像文件放入您的资源文件夹中。
The new binary file format is only used if your deployment target is set to iOS 7. Otherwise it defaults back to simply putting all of the individual image files into your resources folder, as before.
更多推荐
Xcode 5 Asset Catalog是否向后兼容iOS 7之前的版本?
发布评论