Class

MKUserTrackingButton

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

Declaration

class MKUserTrackingButton : UIView

Overview

Use this class when you need a standard button that you can incorporate into your view hierarchy. 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.

Topics

Creating a User Tracking Button

init(mapView: MKMapView?)

Initializes the button with the map view that it should control.

Getting the Parent Map

var mapView: MKMapView?

The map view associated with the button.

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 MKUserTrackingBarButtonItem

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