Is Xcode 5 Asset Catalog backwards compatible with pre-iOS 7?

前端 未结 3 520
太阳男子
太阳男子 2020-12-30 19:17

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

3条回答
  •  孤城傲影
    2020-12-30 20:00

    Yes, it is backwards compatible.

    The documentation says:

    Xcode 5 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 iOS 7, Xcode compiles your asset catalogs into a runtime binary file format that reduces the download time for your app.

    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.

提交回复
热议问题