When I press the Home button it doesn’t fully close, but resides in memory. I would like to restart an app from scratch and not keep its latest state.
How can I programatically close when the home button is pressed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get your app to close when the home button is pressed you need to add an entry for
UIApplicationExitsOnSuspendto yourInfo.plist. This causes the app to revert to pre-4.0 behaviour which is as you describe.