uikit-state-preservation

What is the best way to restore the state of ViewController

别来无恙 提交于 2019-12-01 11:41:48
I would like to ask some suggestion about how to restore a viewControllers state. Like in the app called "Pic Collage" when you create a card and save it and later restore it. If you really want to learn about state preservation, see WWDC 2012 video, Saving and Restoring Application State on iOS . But, it's also just as likely that the app in question is simply saving the model data (the object model that represents this card) in persistent storage, and when the app re-starts, it simply loads that model data again. There are a whole bunch of possible technologies for persistent storage ranging

What is the best way to restore the state of ViewController

余生长醉 提交于 2019-12-01 09:45:18
问题 I would like to ask some suggestion about how to restore a viewControllers state. Like in the app called "Pic Collage" when you create a card and save it and later restore it. 回答1: If you really want to learn about state preservation, see WWDC 2012 video, Saving and Restoring Application State on iOS. But, it's also just as likely that the app in question is simply saving the model data (the object model that represents this card) in persistent storage, and when the app re-starts, it simply