Pulling it all Together

You have created, configured, and connected your view objects and their view controller. You have created the model objects. Two things are left to do for Quiz:

  • finish implementing the action methods showQuestion: and showAnswer: in BNRQuizViewController

  • add code to BNRAppDelegate that will create and display an instance of BNRQuizViewController

Implementing action methods

In BNRQuizViewController.m, finish the implementations of showQuestion: and showAnswer:.

 ​ ​ ​ ​.​.​.​
 ​ ​ ​ ​/​/​ ​R​e​t​u​r​n​ ​t​h​e​ ​a​d​d​r​e​s​s​ ​o​f​ ​t​h​e​ ​n​e​w​ ​o​b​j​e​c​t​
 ​ ​ ​ ​r​e​t​u​r​n​ ​s​e​l​f​;​

-​ ​(​I​B​A​c​t​i​o​n​)​s​h​o​w​Q​u​e​s​t​i​o​n​:​(​i​d​)​s​e​n​d​e​r​
 ​ ​ ​ ​/​/​ ​S​t​e​p​ ​t​o​ ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.