Designing Quiz

You are going to write the Quiz application using the MVC pattern. Here is a breakdown of the instances you will be creating and working with:

  • The model layer will consist of two instances of [String].

  • The view layer will consist of two instances of UILabel and two instances of UIButton.

  • The controller layer will consist of an instance of AppDelegate and an instance of ViewController.

These instances and their relationships are laid out in the diagram for Quiz shown in Figure 1.7.

Figure 1.7  Object diagram for Quiz

Object diagram for Quiz

Figure 1.7 is the big picture of how the finished Quiz application will work. For ...

Get iOS Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.