Adding Outlets and Actions to Your RoadTrip Code
In This Chapter
Connecting your user interface to your code
Using the Assistant
Taking advantage of the Connections inspector
Understanding how connections are made at runtime
When you write your own code, it is pretty obvious how a program works. For example, you create an object, initialize it, and then send it messages.
When you work with storyboards, however, how your program works may not be so obvious. How do you go from the objects you added to your user interface in Interface Builder to code that enables you to access these objects (such as to an Image view to change its image) or receive a message that the user has tapped a button?
The objects in your user interface must communicate with each other and with your source code if your program is to allow the user to interact with it. To access a user interface object and to specify which messages are sent and received, you use Interface Builder to create connections. There are two basic types of connections you can create:
Outlet connections, which connect your code ...