简体   繁体   English

启动图像上的自定义应用程序背景[iOS 4和5]

[英]Custom app background on launch image [ios 4 & 5]

my iOS application has the option to change the background image, there are 3 different background patterns available, and the user can select any of them. 我的iOS应用程序具有更改背景图像的选项,提供3种不同的背景图案,用户可以选择其中的任何一种。

The problem is the launch image, reading the iOS HIG it is supposed to be an image similar to the GUI (first 'window') of the application. 问题是启动映像,读取iOS HIG应该是类似于应用程序的GUI(第一个“窗口”)的映像。 Is it possible to load a different image depending on a user prefference (the background pattern selected)? 是否可以根据用户偏好(选择的背景图案)加载其他图像?

Thanks! 谢谢!

It is not possible. 这不可能。 Default.png needs to be set when you compile. 编译时需要设置Default.png。

You cannot change the Launch Image during app launch (or anytime during App execution). 您无法在应用启动期间(或在应用执行期间的任何时间)更改启动映像。 The way to handle this (realizing that you might be violating the HIG) is to present your own image directly after applicationDidFinishLaunchingWithOptions , and leave the Launch Image as either an intermediate image or blank. 处理此问题的方法(意识到您可能违反了HIG)是在applicationDidFinishLaunchingWithOptions之后直接显示您自己的图像,并将启动图像保留为中间图像或空白。

It is not possible to do so - you can only have one default.png, and you can't alter it programmatically before the app starts. 无法这样做-您只能拥有一个default.png,并且无法在应用启动前以编程方式对其进行更改。 I'd recommend simply creating a splash screen different from the app's background. 我建议您仅创建一个与应用程序背景不同的启动屏幕。 Note that the iOS HIG is a Guideline not a requirement. 请注意,iOS HIG不是准则,不是必需条件。

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

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