I’ve noticed that pressing the iphone button using SDK 4 sends the application in background.
Since I’m dealing with login and other problems I find better closing the app instead of sending it in background status. So I would put an exit(0); statement inside (void)applicationDidEnterBackground:(UIApplication *)application.
Is it a correct approach or is against Apple guidelines?
actually i found the answer by myself: I can set in the info.plst the option “Application does not run in background” to control this behavior instead of using exit(0) command