Close the application instead of entering the background when receiving applicationDidEnterBackground

I wonder if it is possible to completely complete my program after the user clicks the "Home" button, and does not go into the background. Thank.

+3
source share
3 answers

In the application, Info.plistadd a boolean key UIApplicationExitsOnSuspendwith a value YES. See the "Link to a List of Information Properties" link for more information .

+5
source

!! Apple , , , , , , , . App Store , .

Xcode < -yourappname → - Info.plist. Xcode 4 " ". Xcode 3 "". "+", . " " ( ), "YES".

!

+1

.


Info.plist UIApplicationExitsOnSuspend, , IOS 4. Info.plist, .

, , , , UIApplicationExitsOnSuspend Info.plist YES

0

All Articles