Xcode 5&资产目录:如何引用LaunchImage? [英] Xcode 5 & Asset Catalog: How to reference the LaunchImage?

查看:317
本文介绍了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):


  • LaunchImage-568h@2x.png

  • LaunchImage-700-568h@2x.png

  • LaunchImage-700-Landscape@2x~ipad.png

  • LaunchImage-700 -Landscape~ipad.png

  • LaunchImage-700-Portrait@2x~ipad.png

  • LaunchImage-700-Portrait~ipad.png

  • LaunchImage-700@2x.png

  • LaunchImage-Landscape@2x~ipad.png

  • LaunchImage-Landscape ~ipad.png

  • LaunchImage-Portrait@2x~ipad.png

  • LaunchImage-Portrait~ipad.png

  • LaunchImage.png

  • LaunchImage@2x.png

  • LaunchImage-800-667h@2x.png(iPhone 6)

  • LaunchImage-800-Portrait-736h@3x.png(iPhone 6 Plus Portrait)

  • LaunchImage-800-Landscape-736h@3x.png(iPhone 6 Plus风景)

  • LaunchImage-1100 -Portrait-2436h@3x.png(iPhone X人像)

  • LaunchImage-1100-Landscape-2436h@3x.png(iPhone X风景)

  • LaunchImage-568h@2x.png
  • LaunchImage-700-568h@2x.png
  • LaunchImage-700-Landscape@2x~ipad.png
  • LaunchImage-700-Landscape~ipad.png
  • LaunchImage-700-Portrait@2x~ipad.png
  • LaunchImage-700-Portrait~ipad.png
  • LaunchImage-700@2x.png
  • LaunchImage-Landscape@2x~ipad.png
  • LaunchImage-Landscape~ipad.png
  • LaunchImage-Portrait@2x~ipad.png
  • LaunchImage-Portrait~ipad.png
  • LaunchImage.png
  • LaunchImage@2x.png
  • LaunchImage-800-667h@2x.png (iPhone 6)
  • LaunchImage-800-Portrait-736h@3x.png (iPhone 6 Plus Portrait)
  • LaunchImage-800-Landscape-736h@3x.png (iPhone 6 Plus Landscape)
  • LaunchImage-1100-Portrait-2436h@3x.png (iPhone X Portrait)
  • LaunchImage-1100-Landscape-2436h@3x.png (iPhone X Landscape)

这篇关于Xcode 5&资产目录:如何引用LaunchImage?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆