Graphics Programs Reference
In-Depth Information
the action. Select the Show Question button and Control-drag (or right-drag) to the File's
Owner ( QuizViewController ). Once File's Owner is highlighted, release the mouse
button and choose showQuestion: from the pop-up menu, as shown in Figure 1.16 .
Notice that the choices in this menu are the methods you decorated with IBAction in
QuizViewController.h .
Figure 1.16 Setting Show Question target/action
Now set the target and action of the Show Answer button. Select the button and Control-
drag from the button to the File's Owner . Then choose showAnswer: from the pop-up
menu ( Figure 1.17 ).
Figure 1.17 Setting Show Answer target/action
 
 
Search WWH ::




Custom Search