quit app in iOS4

前端 未结 4 1936
轮回少年
轮回少年 2020-12-20 06:27

I have an old app which did many UI initialization work in viewDidLoad of various views. In iOS4 home button just put the app in background so viewDidLoad won\'t get called

4条回答
  •  攒了一身酷
    2020-12-20 06:58

    There is a key in your app's Info.plist file called UIApplicationExitsOnSuspend, set it to the boolean YES, which will essentially revert the home button's functionality to pre-iOS4 and completely exit your app when the home button is tapped.

提交回复
热议问题