Class

MKPinAnnotationView

An annotation view that displays a pin image on the map.

Declaration

@interface MKPinAnnotationView : MKAnnotationView

Overview

Return instances of this class from the mapView:viewForAnnotation: method of your map view delegate when you want to display a pin for one of your annotations. The pins displayed by this view are the same ones found in the Maps application. You can specify the type of pin you want to display and whether you want the pin to be animated into place.

Topics

Getting Standard Pin Colors

+ redPinColor

Returns the standard color for red pins.

+ greenPinColor

Returns the standard color for green pins.

+ purplePinColor

Returns the standard color for purple pins.

MKPinAnnotationColor

The supported colors for pin annotations.

Deprecated

Getting and Setting Attributes

pinTintColor

The color of the pin head.

animatesDrop

A Boolean value indicating whether the annotation view is animated onto the screen.

pinColor

The color of the pin head.

Deprecated

Relationships

Inherits From

See Also

Point-Based Location

Annotating a Map with Custom Data

Annotate a map with location-specific data using default and customized annotation views and callouts.

MKPointAnnotation

A concrete annotation object tied to the specified point on the map.

MKMarkerAnnotationView

An annotation view that displays a balloon-shaped marker at the designated location.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software