iPhone避免保存状态 [英] iphone avoid save state
本文介绍了iPhone避免保存状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,我需要避免保存状态,事实上,我想每次用户启动该应用程序时,该应用程序都会像第一次一样被取消... 我该怎么办?
In my app I need to avoid the saving state, in fact, I whis that each time the user starts the app, the app will be relaunced like the first time... how can I do?
推荐答案
在Info.plist中将UIApplicationExitsOnSuspend
设置为YES
(布尔值).
Set UIApplicationExitsOnSuspend
to YES
(Boolean) in your Info.plist.
这篇关于iPhone避免保存状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文