OGeek|极客世界-中国程序员成长平台

标题: ios - 部署目标设置为 iOS 6 的应用程序精简 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 11:25
标题: ios - 部署目标设置为 iOS 6 的应用程序精简

要利用 iOS 9 附带的应用瘦身功能,我们必须在项目中使用 xcassets 目录。不过,文件也说:

Xcode 6 provides different functionality for asset catalogs depending on the deployment target for your project:

For all projects, individual images can be loaded using set names.

For projects with a deployment target of at least iOS 7 or OS X 10.9, Xcode compiles your asset catalogs into a runtime binary file format that reduces the download time for your app.

如果部署目标设置为 iOS 7, Assets 目录将被编译为 .car 文件,而对于 iOS 6 目标,图像将被简单地复制到应用程序包中。

所以问题是:

提前致谢!



Best Answer-推荐答案


好的,经过几次测试,我得到了答案。

  1. 如果您将部署目标设置为 iOS 6,将应用应用切片。Images.xcassets 中的所有图像都将简单地复制到应用程序包中。因此,如果您希望在 iOS 9 上对图像资源进行切片,则必须将部署目标设置为 iOS 7 或更高版本。
  2. 是的,确实如此。

关于ios - 部署目标设置为 iOS 6 的应用程序精简,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33141460/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4