Question

I'm programming a quiz for the iPad and when the user presses the homebutton while in a quiz and relaunches the app I want the quiz to be already cancled and back on the Startpage of the app. Now it simply gets back to the last view it was on.

Also I want it to show the splashscreen again when the app relaunches.

A complete reset of the app, when pressing the homebutton, would be great.

Thanks in advance

Was it helpful?

Solution

Choose the 'application does not run in background' option in your project's plist. If the option isn't there, press the '+' on the side to add the property.

enter image description here

This will ensure that the app starts afresh every time it's opened.

OTHER TIPS

So, you want to disable multitasking?

Set UIApplicationExitsOnSuspend = YES in your info.plist.

Unless you just want them to resume through the screen, in which case you'll want to look into the lifecycle callbacks for your AppDelegate.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top