iPhone home button pressed

青春壹個敷衍的年華 提交于 2019-12-13 10:02:06

问题


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.


回答1:


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.




回答2:


This has been asked and answered many times. I just answered it a few hours ago:

to load the data when application starts in ipad



来源:https://stackoverflow.com/questions/6625452/iphone-home-button-pressed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!