How do I make the app restart when it is opened?

Monkey Targets Forums/iOS/How do I make the app restart when it is opened?

benmc(Posted 2011) [#1]
I don't always need to do this, but how can I make my app restart completely when opened instead of picking up where it left off? In some cases this is desirable, in others, I just want the game to return to the main menu when first started.


Volker(Posted 2011) [#2]
I just want the game to return to the main menu when first started

??

Look at OnSuspend().


benmc(Posted 2011) [#3]
Sorry, my game has a main menu screen that I want it to go to when started sometimes.

OnSuspend() and OnResume() were exactly what I was looking for.

I'm getting used to the layout of the documentation right now too - thanks for all your help!