Selecting a Destination
In This Chapter
Finding an address for a map coordinate and displaying it on the map
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 File⇒New⇒New 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 ...