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:
- Open the
- 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:
- 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 ...