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