O'Reilly logo

Xcode 4 Cookbook by Steven F. Daniel

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

Creating outlets to Interface Builder objects

In this recipe, we will take a closer look at outlets and how these can be used to communicate with our UI.

Getting ready

In our previous section, we looked at how to add controls to our ViewController to form the construction of our user interface as well as set some properties to our controls. In this section, we will look at how we can connect these up and access these controls within our code.

How to do it…

Creating outlets to Interface Builder objects is a simple process and can be achieved by performing the following simple steps:

  1. Open the assistant editor by selecting Navigate | Open In Assistant Editor or pressing option + command + ,.
  2. Ensure that the ViewController.h interface file is displayed ...

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