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 ...

Get iPhone® Application Development For Dummies®, 4th Edition 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.