I’m developing an iOS application which deals with constantly changing data which is read and written to through a web-based REST API.
I want some data to persist throughout the app’s lifecycle, but I also want it to be reset and reloaded when the user quits the app.
Should I user Core Data for this? If not, is there a simple way to persist data throughout the app’s lifecycle (eg. a singleton class?). What would you guys recommend? Are there benefits to using Core Data? I want to avoid Core Data if possible as it’s a pain to set up.
Thanks in advance
Core Data isn’t about saving data, Core Data is about modeling data during runtime. Persistence is just an option. If you have no interest in persisting the data to disk, just use Core Data with an in-memory store.