Contents

forCurrentLocation()

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

Declaration

class func forCurrentLocation() -> MKMapItem

Return Value

An MKMapItem object representing the user’s location.

Discussion

For privacy reasons, and because the user’s location can change, the map item that this method returns doesn’t contain any coordinate data. When you need the actual location of the user, use the Core Location framework to retrieve it.

See Also

Related Documentation

  • Location and Maps Programming Guide

Creating map items