Greg Barbosa
Greg Barbosa

Reputation: 347

Best way to manage multiple bits of information for one item?

I'm trying to wrap my head around all of this, but essentially I am attempting to save multiple bits of information to one item. I want to create a small app that can store an artists information (such as name, genre, location, top tracks, etc).

If I know this information won't be changing anytime soon, should I use an NSDictionary, NSArray?

My main idea is currently to use NSDictionary, then add each dictionary item into an array to output that to a table view. Would that be correct and efficient use of device resources?

Upvotes: 0

Views: 45

Answers (2)

Chamira Fernando
Chamira Fernando

Reputation: 6846

Store data in Core Data then call NSFetchedResultsController to manipulate data.

Having an array with dictionary is okay for small amount of data.. but as app grows it may have few thousand records.. so its better go with Core data right from the start!

Cheers!

Upvotes: 1

Antonio MG
Antonio MG

Reputation: 20410

Yes, that's a totally correct way of storing your data.

If you need to save the data you can back up that information in Core Data.

Upvotes: 1

Related Questions