This project includes solutions to the challenges.
- Try typecasting the return value from dequeueReusableAnnotationView() so that it's an
MKPinAnnotationView
MKMarkerAnnotationView
. Once that’s done, change thepinTintColor
markerTintColor
property to your favoriteUIColor
. - Add a
UIAlertController
that lets users specify how they want to view the map. There's amapType
property that draws the maps in different ways. For example,.satellite
gives a satellite view of the terrain. - Modify the callout button so that pressing it shows a new view controller with a web view, taking users to the Wikipedia entry for that city.