O'Reilly logo

iPhone® Application Development For Dummies®, 4th Edition by Neal Goldstein

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

Chapter 18

Selecting a Destination

In This Chapter

arrow Finding an address for a map coordinate and displaying it on the map

arrow Finding the map coordinate from an address and displaying it on the map

In this chapter, you are down to the final parts needed for the RoadTrip app to be complete. In Chapter 12, you add multiple destinations to the Destinations.plist, and now it would be nice if the user could select any of them.

Providing the user with the ability to select a destination is what you implement in this chapter. You also discover more about table views along the way. I also show you how to work with modal controllers (which present views that require the user to do something) by creating your own protocol.

Adding the DestinationController

If you’ve followed along throughout this book, by now you should know the drill. As you might expect, you need a view controller to implement the Selecting a Destination interface.

Adding the custom view controller

1. In the Project navigator, select the View Controller Classes group and right-click and then choose New File or choose FileNewNew File from the main menu (or press cmd+N) to open the New File dialog.

2. In the left column of the dialog, select Cocoa Touch under the iOS heading, select the UIViewController Subclass template in ...

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