Restoring Application status

Asked
Viewd89

1

i am having 3 tabs one is catalog tab,cart tab,seetings tab.When i close my app and once again open it i want my app to be in the same tab and same screen previously when i closed.So how to achive this?Are there any API's for restoring application status.

1 个答案

2

您可以将数据序列化为多种不同的格式。在iPhone开发人员中心查看“可可档案和序列化编程指南”。

您可以序列化为plist文件,XML和SQLite。

此外,如果您使用Core Data,则会获得很多内置数据。

  • There are many ways to do this - archivers, writing status to a file, NSUserDefaults. You can use any of these.

    lostInTransitJuly 20, 2009 18:21