Chapter 9

Adding Outlets and Actions to Your RoadTrip Code

In This Chapter

arrow Connecting your user interface to your code

arrow Using the Assistant

arrow Taking advantage of the Connections inspector

arrow How connections are made at runtime

One of the things that the RoadTrip app will be able to do is send the image of a car to the top of the screen, have it move back down the screen, and then have it turn around so it's back where it started, all from a simple tap of the Test Drive button. This isn’t an essential for an app like RoadTrip, but it’s an interesting add-on that lets me show you how to add animation and sound to an app in the next chapter. So if you’re more interested in developing games than a data-based travel guide, you’ll be on your way.

To get ready to add sound and animation to your app, you’re going to need to add some logic to your code. You do that in a custom view controller, which gets detailed coverage in this very chapter — especially the bits about adding custom view controllers and connecting them to the view controllers you create in your storyboard. But that’s only one ...

Get iOS App Development For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.