Reputation: 13
I am working on a to-do list app in Xcode. So what I want to do now is after I close the app and reopen it, I want to see the lists I created before I close it. I think this is about memory keeping of the app. So what can I do to save the lists I create and make it seen after I reopen the app later?
Upvotes: 0
Views: 732
Reputation: 1833
When your application closes, the operating system marks that memory as unused so there is no way to "keep the memory". What you can do is save them to a file, i.e., when you create or update an item you write that to disk and update it accordingly. This way when the application loads you can read from the file and load the saved todo items.
Quick google brought me this Objective-C answer
Upvotes: 4