Reverse-Geocoding a Location

The sample app allows users to drag the green arrow to indicate where they would like to go next, as shown in Figure 2.11.


Figure 2.11 FavoritePlaces sample app: Where I Am Going Next.

When the user drags the green arrow, the map view delegate method mapView:annotationView:didChangeDragState:fromOldState: in ICFMainViewController gets called. That method checks the drag state as described earlier in the chapter in the “Draggable Annotation Views” section, and if the green arrow has stopped being dragged, updates the callout view with a spinner and starts the reverse-geocoding.

ICFFavoritePlace ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.