Type Method


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


class func forCurrentLocation() -> MKMapItem

Return Value

An MKMapItem object representing the current location.


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

init(placemark: MKPlacemark)

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