Instance Property

annotation

The annotation object currently associated with the view.

Declaration

var annotation: MKAnnotation? { get set }

Discussion

You should not change the value of this property directly. This property contains a non-nil value only while the annotation view is visible on the map. If the view is queued and waiting to be reused, the value is nil

See Also

Getting and Setting Attributes

var isEnabled: Bool

A Boolean value indicating whether the annotation is enabled.

var image: UIImage?

The image to be displayed by the annotation view.

var isHighlighted: Bool

A Boolean value indicating whether the annotation view is highlighted.

var centerOffset: CGPoint

The offset (in points) at which to display the view.

var calloutOffset: CGPoint

The offset (in points) at which to place the callout bubble.

var reuseIdentifier: String?

The string that identifies that this annotation view is reusable.