How can I detect when a user exits the application? (hitting the home button) And how can I detect when the relaunch it? (clicking the icon)
*I\'m not talking about
There's a notification UIApplicationDidGoToBackground that fires when the home button is pressed. A similar notification tells you about going back to foreground.
UIApplicationDidGoToBackground