开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜