Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Some advice needed..

I am looking to make an app for my students with theory that they would need for an exam. I am looking to make it mainly theory at this stage using something similar to a master detail application.

I am going to store the choices as an array but not sure the best way to store all the theory attached to each choice. Would I store it as a dictionary and then include all the data in it or do I set up a separate view controller for each choice that they have available. Some of theory is obviously longer than others and wasn't sure if it would make the dictionary too long.

Any help would be appreciated. Love the site.

2 Answers

I would create a model to handle it and do it all via a dictionary.

Thanks. I thought that might be the way but wasn't sure.

Why not store it remotely on something like parse.com? That way it'd be easier to maintain, you can update it without having to update the app, and it would make your code considerably shorter. I haven't gotten tot he core data tutorial, but that might be an option. I just like the idea of remote because then you can update questions and content without updating the app every time.

Thanks. I will look into that. If I was going to do it the other way, which would be to best choice out of curiosity?