Class

MKScaleView

A specialized view that displays the current scale information for its associated map.

Declaration

@interface MKScaleView : UIView

Overview

Use this class when you want to incorporate a standard scale view into your own view hierarchy. A scale view displays a legend with distance information for its associated map view. As the map region changes, the scale view updates automatically to reflect any changes in scale.

Topics

Creating a Scale View

+ scaleViewWithMapView:

Creates a scale view and associates it with the specified map view.

Getting the Scale View Attributes

mapView

The map view that provides the scale information to the scale view.

scaleVisibility

The visibility of the scale view.

legendAlignment

The alignment of the distance information in the scale view.

MKScaleViewAlignment

Constants indicating whether measurements begin at the leading or trailing edge of the view.

Relationships

Inherits From

See Also

Map Customization

MKMapCamera

A virtual camera for defining the appearance of the map.

MKCompassButton

A specialized view that displays the current compass heading for its associated map.

MKAnnotation

An interface for associating your content with a specific map location.

MKUserTrackingButton

A specialized button that allows the user to toggle through the user tracking modes.

MKUserTrackingBarButtonItem

A specialized bar button item that allows the user to toggle through the user tracking modes.