本文介绍了Xcode 5&资产目录:如何引用LaunchImage?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Xcode 5的资产目录,我想使用我的 LaunchImage
作为我家视图的背景图像(这是一种很常见的做法,可以从'loading'到'loaded'看起来很流畅。)
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 transition from 'loading' to 'loaded' look smooth).
我想在资产目录中使用相同的条目来节省空间而不必将图像复制到两个不同的图像集。
I would like to use the same entry in the Asset Catalog to save space and not have to replicate the image in two different Image Sets.
然而,调用:
UIImage *image = [UIImage imageNamed:@"LaunchImage"]; //returns nil
推荐答案
这是(差不多)完整的LaunchImage列表(不包括没有状态栏的iPad图像):
This is the (almost) complete list of the LaunchImage (excluding the iPad images with no status bar):
- [email protected]
- [email protected]
- LaunchImage-700-Landscape@2x~ipad.png
- LaunchImage-700 -Landscape~ipad.png
- LaunchImage-700-Portrait@2x~ipad.png
- LaunchImage-700-Portrait~ipad.png
- [email protected]
- LaunchImage-Landscape@2x~ipad.png
- LaunchImage-Landscape ~ipad.png
- LaunchImage-Portrait@2x~ipad.png
- LaunchImage-Portrait~ipad.png
- LaunchImage.png
- [email protected]
- [email protected](iPhone 6)
- [email protected](iPhone 6 Plus Portrait)
- [email protected](iPhone 6 Plus风景)
- LaunchImage-1100 [email protected](iPhone X人像)
- [email protected](iPhone X风景)
- [email protected]
- [email protected]
- LaunchImage-700-Landscape@2x~ipad.png
- LaunchImage-700-Landscape~ipad.png
- LaunchImage-700-Portrait@2x~ipad.png
- LaunchImage-700-Portrait~ipad.png
- [email protected]
- LaunchImage-Landscape@2x~ipad.png
- LaunchImage-Landscape~ipad.png
- LaunchImage-Portrait@2x~ipad.png
- LaunchImage-Portrait~ipad.png
- LaunchImage.png
- [email protected]
- [email protected] (iPhone 6)
- [email protected] (iPhone 6 Plus Portrait)
- [email protected] (iPhone 6 Plus Landscape)
- [email protected] (iPhone X Portrait)
- [email protected] (iPhone X Landscape)
这篇关于Xcode 5&资产目录:如何引用LaunchImage?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!