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
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