出来的背景,当重新启动应用程序 [英] Restart app when coming out of background

查看:108
本文介绍了出来的背景,当重新启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到很多的新闻应用程序做到这一点,当你点击应用(在iPhone桌面上),其中已在后台模式下,它通过显示加载屏幕再次启动,等基本上就像它开始再像它在后台模式从来没有(我认为所谓的刷新用户界面)。是否有人知道你怎么做呢?我想这是从应用程序的委托applicationWillEnterForeground或applicationDidBecomeActive方法调用。

I've seen many news apps do this, where when you click on the app (on the iphone desktop) that has been in background mode, it starts again by showing a loading screen, etc. It basically looks like it starts again like it was never in background mode (I think what is called "refreshing the user interface). Does anybody know how you do this? I assume this is call from the app's delegate applicationWillEnterForeground or applicationDidBecomeActive method.

推荐答案

应用程序可能永远不会进入的背景。尝试添加这Info.plist文件。

The application probably never went into the background. Try adding this to the Info.plist file.

UIApplicationExitsOnSuspend = YES

作为一个布尔值。

这篇关于出来的背景,当重新启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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