saving iPhone program state with a deep UINavigationController
- by jr
Can someone a good way to save the program state (UINavigationController stack, etc) of an iPhone application.
My application obtains a bunch of information from the network and I want to return the person back to the last screen they were on, even if it was 3 or 4 screens deep.
I assume that I will need to reload the data from the network along the way as I recreate the UINavigation controllers. I don't necessarily have a problem with this.
I'm thinking about maybe having my UINavigationController objects implement some type of protocol which allow me to save/set their state? I'm looking to hear from others who may have needed to implement a similar scenario and how they accomplished it.
My application has a UITabbarController at the root and UINavigationController items for each tab bar item.
thanks!