How do I make my iOS app reset when the user clicks the home button?

What you are looking for is (source): - (void)applicationDidBecomeActive:(UIApplication *)application This method is called to let your application know that it moved from the inactive to active state. This can occur because your application was launched by the user or the system. Applications can also return to the active state if the user chooses to ignore an interruption (such as an incoming phone call or SMS message) that sent the application temporarily to the inactive state.

You should use this method to restart any tasks that were paused (or not yet started) while the application was inactive. For example, you could use it to restart timers or throttle up OpenGL ES frame rates. If your application was previously in the background, you could also use it to refresh your application’s user interface.

OLD ANSWER: In your UIApplicationDelegate, there is a delegate method: – applicationDidEnterBackground:2 which is called when you app enter background. You could stop the timer there. If you also want that the timer is stopped in the face of other interruptions, like an incoming call, you could use: applicationWillResignActive.

Thank you for your response. My issues is that even after exiting and re-entering the app, my animations will still be in the same place they were when I hit the home button. On a similar note, I also would like the start button to reset animation.

How do I do this? – Riley Shepard Aug 19 '11 at 19:37 Please, see my edit. ApplicationDidBecomeActive gives you a chance to do whatever you need whenever your app is awoken from the background... – sergio Aug 19 '11 at 21:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions