MKUserTrackingBarButtonItem Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/MapKit.framework |
| Availability | Available in iOS 5.0 and later. |
| Companion guide | |
| Declared in | MKUserTrackingBarButtonItem.h |
Overview
AMKUserTrackingBarButtonItem object is a specialized bar button item that allows the user to toggle through the user tracking modes. For example, when the user taps the button, the map view toggles between tracking the user with and without heading. The button also reflects the current user tracking mode if set elsewhere. This bar button item is associated to a single map view.
Properties
mapView
The map view associated with this bar button item.
@property(nonatomic, retain) MKMapView *mapView
Availability
- Available in iOS 5.0 and later.
Declared In
MKUserTrackingBarButtonItem.hInstance Methods
initWithMapView:
Initializes a newly created bar button item with the specified map view.
- (id)initWithMapView:(MKMapView *)mapView
Parameters
- mapView
The map view used by this bar button item.
Return Value
The initialized bar button item.
Availability
- Available in iOS 5.0 and later.
Declared In
MKUserTrackingBarButtonItem.h© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-10-12)