How to archive when application state changed?


Hello, I’ve found that when I restarted the example app of this chapter, the data I input last time were all gone, they aren’t shown in the UITableView anymore.

It seems that I didn’t archive those data when I quitted the app or I should do something to restore when the app is started?

Can anyone tell me about that?

I think I haven’t understood how CoreData works yet .