Instance Method

initWithPlacemark:

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

Declaration

- (instancetype)initWithPlacemark:(MKPlacemark *)placemark;

Parameters

placemark

The placemark object corresponding to the desired map location. This parameter must not be nil.

Return Value

An initialized map item object.

Discussion

Use this method to create a map item for an existing placemark. Do not use it to create a map item representing the user’s current location. To do that, use the mapItemForCurrentLocation method instead.

See Also

Creating Map Items

+ mapItemForCurrentLocation

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