UIApplicationExitsOnSuspend anything else I'm missing?

后端 未结 6 1819
借酒劲吻你
借酒劲吻你 2021-02-08 23:17

So I know this has been beaten to death but I still can\'t figure out a solution.

I have my UIApplicationExitsOnSuspend set to in the Info.pli

6条回答
  •  伪装坚强ぢ
    2021-02-08 23:22

    Did you do a clean build, delete the app from both the simulator and the device, and re-install? That's the only key that affects it. Also, make sure you are building with base SDK set to iOS 4.0.

    UIApplicationExitsOnSuspend (Boolean - iOS) specifies that the application should be terminated rather than moved to the background when it is quit. Applications linked against iPhone SDK 4.0 or later can include this key and set its value to YES to prevent being automatically opted-in to background execution and application suspension. When the value of this key is YES, the application is terminated and purged from memory instead of moved to the background. If this key is not present, or is set to NO, the application moves to the background as usual.

提交回复
热议问题