Adding annotation placeholders to the map
In this recipe we will learn how to create our own custom class that will enable us to add annotations to our map view control.
In this section we will see how we can use the
MKAnnotationView classes to enable us to apply a series of annotation pins based on the geographic latitude and longitude values to our
How to do it…
To begin, follow these simple steps as outlined in the following order:
- Select the CoreLocation group, choose File | New | File… or press Command + N.
- Select the
Objective-Cclass template from the list of available templates.
- Click on the Next button to proceed to the next step in the wizard.
- Enter in
MapViewAnnotationas the name of the class ...