MKUserLocation Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/MapKit.framework |
| Availability | Available in iOS 3.0 and later. |
| Companion guide | |
| Declared in | MKUserLocation.h |
Overview
The MKUserLocation class defines a specific type of annotation that identifies the user’s current location. 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 application.
Properties
heading
The heading of the user location. (read-only)
Discussion
This property is nil if the user location tracking mode is not MKUserTrackingModeFollowWithHeading.
Availability
- Available in iOS 5.0 and later.
Declared In
MKUserLocation.hlocation
The current location of the device. (read-only)
Discussion
This property contains nil if the map view is not currently showing the user location or if the user’s location has not yet been determined.
Availability
- Available in iOS 3.0 and later.
Declared In
MKUserLocation.hsubtitle
The subtitle to display for the user location annotation.
Availability
- Available in iOS 3.0 and later.
Declared In
MKUserLocation.htitle
The title to display for the user location annotation.
Availability
- Available in iOS 3.0 and later.
Declared In
MKUserLocation.hupdating
A Boolean value indicating whether the user’s location is currently being updated. (read-only)
Availability
- Available in iOS 3.0 and later.
Declared In
MKUserLocation.h© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-10-12)