Class

MKCompassButton

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

Declaration

@interface MKCompassButton : UIView

Overview

Use this class when you want to incorporate a standard compass button into your own view hierarchy. A compass button reflects the current orientation of its associated map view. Tapping the compass button reorients the map so that due north is at the top of the map view.

Topics

Creating a Compass Button

+ compassButtonWithMapView:

Creates a compass button and associates it with the specified map view.

Getting the Compass Attributes

mapView

The map view that provides the heading information for the compass button.

compassVisibility

The visibility of the compass button.

MKFeatureVisibility

Constants indicating the visibility of different map features.

Relationships

Inherits From

See Also

Map Customization

MKMapCamera

A virtual camera for defining the appearance of the map.

MKScaleView

A specialized view that displays the current scale information 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.