简体   繁体   English

使用LaunchImage作为背景(iOS)?

[英]Using LaunchImage as background (iOS)?

I want to use my Launch Image like a background during the application execution, but I've tried many ways and none of them worked. 我想在应用程序执行期间像背景一样使用启动映像,但是我尝试了许多方法,但没有一种起作用。 I want to do this because I have a single launch image for iPhone 3.5i, iPhone 4i, iPad and iPad with Retina, and I don't know how to load a specific image for each case. 我要这样做是因为我为iPhone 3.5i,iPhone 4i,iPad和带有Retina的iPad提供了一个启动映像,并且我不知道如何为每种情况加载特定的映像。

There is some way to load a Launch Image as background, or I need to create statements for each case when loading a background? 有一些方法可以将启动图像加载为背景,或者在加载背景时需要为每种情况创建语句?

Nevermind, I just found out that you can create ImageSets which are device specific. 没关系,我刚刚发现您可以创建特定于设备的ImageSet。

You just need to open the attribute inspector and change it from "Universal" to "Device Specific" and you can create a fully openable image. 您只需要打开属性检查器并将其从“通用”更改为“特定于设备”,就可以创建一个完全可打开的图像。

只需将用作启动图像的图像放入视图控制器中的图像视图即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM