Quit app when pressing home

后端 未结 3 571
轻奢々
轻奢々 2020-12-19 17:16

I my testing, when I exit (by pressing the home button) my app, it still is \"running\" in the background, thanks to the multitasking feature. However, I would like it to q

3条回答
  •  我在风中等你
    2020-12-19 18:04

    Your application can opt out of multitasking (see the appropriate section in the iPhone Application Programming Guide) by adding the UIApplicationExitsOnSuspend key to your Info.plist and setting its value to YES.

    In practice, Apple strongly recommends you not do this unless you have a very good reason for this behavior.

提交回复
热议问题