how to save a uiview while closing the app
I have a requiremen开发者_如何学运维t to save the last screen viewed while closing the app so that i can show the same screen when he re-opens the app. Can anyone tell me how to save the view and show it after re-opening ?
In applicationWillTerminate:
and applicationDidEnterBackground:
, save enough state to [NSUserDefaults standardUserDefaults]
so you can restore the view in the view controller's viewDidLoad
method.
精彩评论