Contents

init(placemark:)

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

Declaration

init(placemark: MKPlacemark)

Parameters

  • placemark:

    The placemark object corresponding to the desired map location. This parameter can’t be nil.

Return Value

An initialized map item object.

Discussion

Use this method to create a map item for an existing placemark. Don’t use it to create a map item representing the user’s location. To do that, use the forCurrentLocation() method instead.

See Also

Creating map items