Reputation: 10328
Is there a quick and easy way to have the app go back to the same screen after I put it in background mode?
I know there are frameworks just for this stuff, but has anyone done it without much sweat?
Thanks
Upvotes: 1
Views: 315
Reputation: 544
In your app delegate, add a line to the applicationDidenterBackground:
method that stores the current page via NSUserDefaults.
Then in the applicationWillEnterForeground:
method, load up that saved value and restore the page.
Upvotes: 1
Reputation: 4822
Multitasking should enable this, while a device has enough memory to keep your app open. Otherwise how about using NSUserDefaults to store a string reference to your view?
Upvotes: 1