iPhone home键pressed [英] iPhone home button pressed

查看:245
本文介绍了iPhone home键pressed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序有打开的浏览器一个按钮,我的应用程序是背景。我只是想关闭该家单击按钮时的应用程序。

In my app has a button that opens the browser and my application was for background. I just want to close the app when the home button is clicked.

感谢您帮助我。

推荐答案

不知道如果我正确地理解你的问题,但如果你想你的应用程序退出(而不是去背景),你必须设置 UIApplicationExitsOnSuspend 关键在你的Info.plist到

Not sure if I understand your question correctly, but if you want your app to quit (rather than going to the background), you'll have to set the UIApplicationExitsOnSuspend key in your Info.plist to YES.

这篇关于iPhone home键pressed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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