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