Xcode 5 & Asset Catalog: How to reference the LaunchImage?

前端 未结 14 1503
萌比男神i
萌比男神i 2020-11-28 18:17

I am using Xcode 5\'s Asset Catalog, and I would like to use my LaunchImage as the background image of my home view (a pretty common practice to make the transi

14条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 18:39

    Following @Pichirich's answer, I referenced my launchimage in InterfaceBuilder as:

    "LaunchImage.png"

    ...and with Xcode 5.0.2, it's automatically plucking the appropriate image straight out of the Asset Catalog.

    This is what I'd expect - except for Apple's viciously nasty move of silently renaming "Default.png" to "LaunchImage.png" :)

提交回复
热议问题