退出应用程序,而不是在接收applicationDidEnterBackground时输入背景 [英] Quit app instead of entering background when receiving applicationDidEnterBackground

查看:644
本文介绍了退出应用程序,而不是在接收applicationDidEnterBackground时输入背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是否可以在用户按Home按钮后完全退出我的程序,而不是进入后台运行模式。感谢。

I wonder if it's possible to quit my program entirely after the user presses the Home button, rather than going into background run mode. Thanks.

推荐答案

在您的应用程式的 Info.plist UIApplicationExitsOnSuspend 与值 YES 。请参阅信息属性列表键参考了解更多信息。

In your application's Info.plist, add a boolean key UIApplicationExitsOnSuspend with the value YES. See the Information Property List Key Reference for more information.

这篇关于退出应用程序,而不是在接收applicationDidEnterBackground时输入背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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