Graphics Programs Reference
In-Depth Information
The camera button will need to send a message to the instance of DetailViewCon-
troller when it is tapped. In previous exercises, you connected action methods in two
steps: declaring them in the header file and then hooking them up in the XIB file. Just like
you did with outlets, you can do both steps at once by opening a source file in the assistant
editor and Control-dragging from a XIB file to the file. Option-click DetailViewCon-
troller.h in the project navigator to open it in the assistant editor .
In DetailViewController.xib , select the camera button and Control-drag from
the button to the method declaration area in DetailViewController.h ( Fig-
ure 12.5 ) .
Search WWH ::




Custom Search