An annotation that always reflects the user's current location on the map.


class MKUserLocation : NSObject


You do not create instances of this class directly. Instead, you retrieve an existing MKUserLocation object from the userLocation property of the map view displayed in your app.


Determining the User’s Position

var location: CLLocation?

The current location of the device.

var isUpdating: Bool

A Boolean value indicating whether the user’s location is currently being updated.

var heading: CLHeading?

The heading of the user location.

Accessing the User Annotation Text

var title: String?

The title to display for the user location annotation.

var subtitle: String?

The subtitle to display for the user location annotation.


Inherits From

See Also

User Location

Converting a User's Location to a Descriptive Placemark

Transform the user’s location displayed on a map into an informative description.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software