O'Reilly logo

Xcode 4 iOS Development 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

Time for action – binding Control Objects

The way in which we achieve this is to connect our controls via the use of outlets and actions which we will be discussing in this section:

  1. Open the HelloXcode4_GUIViewController.xib file.
  2. Select the Username textbox control and hold down the Ctrl key while using the mouse to drag this into the HelloXcode4_GUIViewController.h interface file and release the mouse button:
    Time for action – binding Control Objects
  3. Next, once we have dragged the object to which we want to bind within our code, we need to specify its connection type, and provide a name and type as shown in the screenshot below:

    An outlet (IBOutlet) is basically a variable by which an object ...

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