始终在rootViewController上打开应用程序 [英] Always open application at rootViewController
本文介绍了始终在rootViewController上打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,我希望用户在应用程序打开时始终可以看到 rootViewController
的视图,即使应用程序尚未完全被杀死。
In my app I want the user to always see the rootViewController
's view when the app is opened even if the app has not been killed completely.
我考虑过的另一个选择是在 applicationWillResignActive中调用
然而,这似乎不是一个好的解决方案。 abort()
:
One alternative I have considered is calling abort()
in applicationWillResignActive:
however this doesn't seem like a nice solution.
有任何建议吗?
推荐答案
将Info.plist中的UIApplicationExitsOnSuspend设置为true。
Set UIApplicationExitsOnSuspend in your Info.plist to true.
这篇关于始终在rootViewController上打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文