Class

MKPinAnnotationView

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

Overview

Return instances of this class from the mapView(_:viewFor:) 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

class func redPinColor()

Returns the standard color for red pins.

class func greenPinColor()

Returns the standard color for green pins.

class func purplePinColor()

Returns the standard color for purple pins.

enum MKPinAnnotationColor

The supported colors for pin annotations.

Deprecated

Getting and Setting Attributes

var pinTintColor: UIColor!

The color of the pin head.

var animatesDrop: Bool

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

var pinColor: MKPinAnnotationColor

The color of the pin head.

Deprecated

Relationships

Inherits From

See Also

Point-Based Location

class MKPointAnnotation

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

class MKMarkerAnnotationView

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