Gold Challenge: Dropping Pins

Map views can display pins, which are instances of MKPinAnnotationView. Add three pins to the map view: one where you were born, one where you are now, and one at an interesting location you have visited in the past. Add a button to the interface that allows the map to display the location of a pin. Subsequent taps should simply cycle through the list of pins.

Get iOS Programming: The Big Nerd Ranch Guide, 6th 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.