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

有帮助吗?

解决方案

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.

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top