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 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 of the “Quiz” application using the Model View Controller pattern.

Get iOS Programming: The Big Nerd Ranch Guide, 6th Edition 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.