Deco
Deco

Reputation: 93

Should I start using core data?

I have started development of an app which is data reliant. It has a lot of information (using probably only 2 tables) so I am thinking core data is the way to go. However, I hate apps that only work when the user has an internet connection.

So what I would like to do is have saved core data on the device, and only download updates either periodically, on users' request or give them the option to update data when the app has loaded.

Is this the best solution and could someone please point me in the direction of a good blog or tutorial for this.

Many Thanks

Upvotes: 3

Views: 164

Answers (1)

XJones
XJones

Reputation: 21967

The topics you ask about are really unrelated.

  1. To implement your apps data model, Core Data is a fine solution. The iOS docs and sample code are good. if you need more I'm sure there are various blog posts but I don't have a recommendation. If you run into specific problems/issues there is tons of stuff on SO as well.

  2. If you don't want to require a connection that's fine. This has nothing do with core data. It does have to do with apps functional requirements. At a minimum, store the apps current state in the data model and update at whatever interval you like, checking for a connection if that's required. Basically, whatever your app does, if a function requires a connection reflect that in the UI. Everything else should work fine without a connection.

Upvotes: 2

Related Questions