Mac Developer Library

Developer

MapKit Framework Reference MKPointAnnotation Class Reference

Options
Deployment Target:

On This Page
Language:

MKPointAnnotation

Inheritance


Conforms To


Import Statement


Swift

import MapKit

Objective-C

@import MapKit;

Availability


Available in OS X v10.9 and later.

The MKPointAnnotation class defines a concrete annotation object located at a specified point. You can use this class, rather than define your own, in situations where all you want to do is associate a point on the map with a title.

  • The coordinate point of the annotation, specified as a latitude and longitude.

    Declaration

    Swift

    var coordinate: CLLocationCoordinate2D

    Objective-C

    @property(nonatomic, assign) CLLocationCoordinate2D coordinate

    Import Statement

    Objective-C

    @import MapKit;

    Swift

    import MapKit

    Availability

    Available in OS X v10.9 and later.