In a previous post I mentioned Keith Harrison’s good work discussing the big picture of view of iOS state preservation and restoration.
Keith on his second post:
I previously covered the basics of using state preservation and restoration but for the sake of brevity I did not provide an example of how to use a Restoration Class. This post will fix that omission and also take a look at how you can implement state restoration for a UIWebView.
You can find Keith’s project at github.