gpt4 book ai didi

ios - 我可以在每次我的应用程序进入前台时显示启动图像吗?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:53:44 24 4
gpt4 key购买 nike

对于我的应用程序,在 xcode 4 中我为我的启动图像设置了一个 png(在目标中)...但它只在我第一次启动应用程序时出现;是不是每次都出现这个启动画面?此外,当我将我的应用程序置于后台时,我不会杀死它。可能吗?

最佳答案

即使相当多的应用程序有它们,也不应该有启动画面。 Apple 在他们的 Human Interface Guidelines 中清楚地说明了这一点。 :

To enhance the user’s experience at application launch, you must provide at least one launch image. A launch image looks very similar to the first screen your application displays. iOS displays this image instantly when the user starts your application and until the app is fully ready to use. As soon as your app is ready for use, your app displays its first screen, replacing the launch placeholder image.

Supply a launch image to improve user experience.

Avoid using it as an opportunity to provide:

An “application entry experience,” such as a splash screen An About window Branding elements, unless they are a static part of your application’s first screen Because users are likely to switch among applications frequently, you should make every effort to cut launch time to a minimum, and you should design a launch image that downplays the experience rather than drawing attention to it.

Generally, design a launch image that is identical to the first screen of the application.

回答您的问题:您可以实现 UIApplication delegate当您的应用程序确实处于事件状态或将进入前台时采取措施:

- (void)applicationDidBecomeActive:(UIApplication *)application {

}


- (void)applicationWillEnterForeground:(UIApplication *)application {

}

关于ios - 我可以在每次我的应用程序进入前台时显示启动图像吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7482447/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com