Instance Property

image

The image to be displayed by the annotation view.

Declaration

iOS, Mac Catalyst, tvOS
@property(nonatomic, strong) UIImage *image;
macOS
@property(nonatomic, strong) NSImage *image;

Discussion

Assigning a new image to this property also changes the size of the view’s frame so that it matches the width and height of the new image. The position of the view’s frame does not change.

See Also

Getting and Setting Attributes

enabled

A Boolean value indicating whether the annotation is enabled.

highlighted

A Boolean value indicating whether the annotation view is highlighted.

annotation

The annotation object currently associated with the view.

centerOffset

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

calloutOffset

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

reuseIdentifier

The string that identifies that this annotation view is reusable.