I am saving and restoring my app's state by opting in (in the AppDelegate):
func application(application: UIApplication, shouldRestoreApplicationState coder: NSCoder) -> Bool {
return true
}
This works when I kill the app with the Xcode stop execution button after the app has been backgrounded.
But when I try to kill the backgrounded app on the device (by double tapping the home button and swiping the app up off the screen), then the app state is not restored when relaunched.
How can I quit out of the app on the device so that it will restore its' state? Or is it now only possible to test it using Xcode?
Aucun commentaire:
Enregistrer un commentaire