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

Nigel So
Nigel So
1,816 Points

New Quiz App Project

Hi everyone, my name is Nigel.

I just recently started on treehouse and still going through the tutorials of the swift ios videos.

I am about to begin a new Project and would like to some directions. My project would be a Quiz App which has links to several topics.

The main scope of my project is:

-One main page that links to several quiz pages (topics)

-Each quiz page will generate a random question from my data model (maybe a struct)

-I would prefer the answer buttons (4 of them) to not be the same button for the same questions.

-Each quiz topic to generate 10 random questions out of my data array (of maybe like 30 questions)

My main concern is that do i have to create a ViewController file for each page?(UIViewControllers) I'm still trying to get my head around it.

I know that I should create a struct to model my questions into arrays/dictionaries but how do I generate 10 different and not the same questions out of my 30 questions, using a arc4 generator.

I think thats about how much i need to get started.

Sorry for the long thread =(