The MKPointAnnotation is the basic version of an annotation that can be used to display a pin along with a title and subtitle. These can come in handy for displaying basic information on a map. If you want to do more than show a point on a map with a title, then you will need to use MKAnnotation and MKAnnotationView. We’ll look at both of those later in this tutorial. Note that you can change the pin as well and provide a custom image. I’ll show you how in the tutorial below.
The screenshot to the left shows what an MKPointAnnotation looks like in its basic form. This is what this short tutorial will cover today. To get started, download the tutorial from yesterday or create a new Single View Application and drag a map to the view, connect it up as an IBOutlet, import MapKit.framework and the CoreLocation.framework. Include both of these in your header file of the associated class with the view. [Read more…]