Class

MKUserTrackingBarButtonItem

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

Declaration

class MKUserTrackingBarButtonItem : UIBarButtonItem

Overview

Tapping the button lets the user toggles between modes for displaying the map with and without the current heading applied. The button also reflects the current user tracking mode if set elsewhere. This bar button item is associated to a single map view.

Topics

Creating a User Tracking Bar Button Item

init(mapView: MKMapView?)

Initializes a newly created bar button item with the specified map view.

Accessing the Owning Map

var mapView: MKMapView?

The map view associated with this bar button item.

See Also

Map Customization

class MKMapCamera

A virtual camera for defining the appearance of the map.

class MKCompassButton

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

class MKScaleView

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

protocol MKAnnotation

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

class MKUserTrackingButton

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