Type Method

mapItemForCurrentLocation

Creates and returns a singleton map item object representing the device’s current location.

Declaration

+ (MKMapItem *)mapItemForCurrentLocation;

Return Value

An MKMapItem object representing the current location.

Discussion

For privacy reasons, and because the user’s location can change, the map item returned by this method does not contain any coordinate data. When you need the actual location of the user, you must use the Core Location framework to retrieve it.

See Also

Creating Map Items

- initWithPlacemark:

Initializes and returns a map item object using the specified placemark object.