Possible Duplicate:
Exit application in iOS 4.0
My client would like the app to shutdown when the user presses the 'Home' button. If the app icon is then touched again (either on the home screen or via double-tapping the home button and selecting the app), it would restart the app.
My initial attempt to call applicationWillTerminate
from within applicationWillResignActive
hasn't worked so I turn to you oh sage ones.
Is this possible and, if so, how?