进入背景时如何退出应用 [英] How to exit app while enter background
本文介绍了进入背景时如何退出应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序进入后台时,我需要退出我的应用程序
I need to exit my app while my app enter into background
推荐答案
如果您不希望您的应用进入后台,请在应用的 Info.plist
UIApplicationExitsOnSuspend 键>文件为 YES
If you never want your app to enter the background set the UIApplicationExitsOnSuspend
key in your application’s Info.plist
file to YES