O'Reilly logo

iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK by Joe Keeley, Kyle Richter

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

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.

Image

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

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