Is there any in-built technique for moving straight to the last UIViewController shown before quiting your app?
I’m trying to figure out if there are any inbuilt ways of doing this with the UIKit framework /Cocoa Touch. If not I realise it will be fairly trivial to implement, but I don’t want to do this if something already exists.
For example:
- You start your app
- You move through 3 UIViewControllers (inside a UINavigationController)
- You move through a list of items each one is displayed full screen, to item 5
- You quit
You then restart the app and want to be back on that last view you were at step 3 – viewing your fifth item.
NSUserDefaults will be the tool for this job. You could simply save a key to indicate your position in the app, and then read this key again when the app launches to decide where to go: