开发者

how to save a uiview while closing the app

开发者 https://www.devze.com 2023-01-17 05:48 出处:网络
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

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

精彩评论

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