从后台返回时,如何强制应用始终从头开始? [英] How do I force an app to always start from scratch when it returns from the background?
本文介绍了从后台返回时,如何强制应用始终从头开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个需要从头到尾都通过协议运行的应用程序.无论从何处离开背景,如何强制应用始终从后台启动时始终从头开始.谢谢
I'm working on an app that needs to run through a protocol from beginning to end. How do I force the app to always start at the beginning when brought back from the background, regardless of where it was left. Thanks
推荐答案
如果您的目标是在每次启动时从头开始重新启动应用程序,只需将键 UIApplicationExitsOnSuspend
添加/更改为是
在您的info.plist文件中
If your goal is to restart the app from scratch at every start up, simply add/change the key UIApplicationExitsOnSuspend
to YES
in your info.plist file
这篇关于从后台返回时,如何强制应用始终从头开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文