concept annotation in category ios

appears as: nnotations, An notation, n annotation, Annotations
iOS 7 in Action

This is an excerpt from Manning's book iOS 7 in Action.

10.3.3. Using annotations in a map

An annotation is a view that’s used to mark a single coordinate on a map. You can use annotations to mark specific points of interest. An example of an annotation is shown in figure 10.16 to mark the location of Apple, Inc.

Figure 10.16. An annotation used to display the location of Apple, Inc. within the Maps application

To create an annotation you can use the MKPointAnnotation class. You’ll have to specify a coordinate, title, and, optionally, a subtitle. If you had an instance variable of a map named mapView, you could add an annotation using the addAnnotation: method. Here you can see how you’d add an annotation for Apple’s headquarters in Cupertino, California: