O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connect the Dots

To hook up the controller to the interface, you need to connect the button outlet in the controller to the red button in the interface:
1. Switch back to Interface Builder.
2. Select File’s Owner in the document window. File’s Owner represents the controller that will be managing the view. In this case, it points to the iShockUController class whose code you just edited.
3. Select Connections in the inspector window. Under the Outlets and Received Actions sections, you will see the outlets and actions you added to the controller code.
4. Next, you form connections between the controller code and the interface elements. Click and drag from the circle across from the button outlet, and release it over the button in the interface. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required