仅在从头启动时,如何让应用程序使用Default.png加载? [英] How to let the app load with Default.png only when it is launched from scratch?

查看:33
本文介绍了仅在从头启动时,如何让应用程序使用Default.png加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例:My Default.png图像显示了带有空界面的应用程序的开始屏幕.第一次从头启动应用程序时,这很酷.看起来好像开始很快.但是,当用户退出它并且应用程序只是进入后台,然后用户打开它时,这很糟糕.然后,我总是以错误的快照"作为启动映像,然后我的应用在启动后看起来就完全不同了,因为它就像上次离开一样.

Example: My Default.png image shows the start screen of my app with an empty interface. When the app is launched from scratch the first time, this is cool. It appears like it started quickly. But when the user quits it and the app just goes to background, and then the user opens it, this sucks. Then I always end up with a wrong "snapshot" as launch image and my app then looks completely different after launch because it is like it was left the last time.

当我的应用程序仅进入后台时,我将不得不禁用Default.png,否则当它真正终止时,我将不得不启用它.有什么办法吗?

I would have to disable the Default.png when my app just goes to background, or I would have to enable it when it gets really terminated. Any way to do this?

推荐答案

在我看来,您的应用没有被暂停.我使用过的每个支持快速应用程序切换的应用程序在挂起后都没有显示其默认png.

It sounds to me like your app isn't being suspended. Every app that I've used that supports fast-app switching hasn't shown its default png when I open it after suspending it.

您确定您的应用程序支持快速应用程序切换并且已被暂停吗?

Are you sure your app is supporting fast-app switching and that it is being suspended?

只需更新我的答案即可,以使注释中显示的内容更加清晰:

为了利用快速应用程序切换的优势,需要满足以下条件:

In order to take advantage of fast-app switching, the following conditions need to be met:

  • 应用程序需要针对4.0 SDK进行编译
  • 应用程序需要在具有多任务处理能力的设备上运行,例如:
    • iPhone 4
    • iPhone 3GS
    • 第三代iPod touch

    这篇关于仅在从头启动时,如何让应用程序使用Default.png加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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