saving iPhone program state with a deep UINavigationController

Posted by jr on Stack Overflow See other posts from Stack Overflow or by jr
Published on 2010-02-28T03:05:38Z Indexed on 2010/03/12 19:07 UTC
Read the original article Hit count: 367

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!

© Stack Overflow or respective owner

Related posts about uinavigationcontroller

Related posts about iphone