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

前端 未结 14 1505
萌比男神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:38

    In the documentation there is clearly stated:

    "Each set in an asset catalog has a name. You can use that name to programmatically load any individual image contained in the set. To load an image, call the UIImage:ImageNamed: method, passing the name of the set that contains the image."

    Using Pichirichi's list helps to solve this inconsistency.

提交回复
热议问题