I do not want my app to switch to the “task bar” when the Home button is pressed. That’s why I would like it to be closed upon Home press. I added this entry to the info.plist file but this does not change the behaviour:
application does not run in background
(and I checked the box…)
I rebuilt the whole app both in debug and release mode but no way. I heard of another key which should be added to the info.plist but I cannot add it through Xcode:
UIApplicationExitsOnSuspend
What is the right way to do that ?
Regards,
Franz
On iOS 4, multitasking is enabled in Xcode projects by default. This prevents the
applicationWillTerminatemethod from being called. If you do not want to support multitasking, placeUIApplicationExitsOnSuspendin your MyAppName-Info.plist file and check the checkbox. If you do want to support it, place any code in theapplicationDidEnterBackgrounddelegate method that you want to execute before the application enters an inactive state.