MKPointAnnotation

class MKPointAnnotation : MKShape
  • A convenience initializer for initializing a point annotation with coordinate.

    Declaration

    Swift

    convenience init(coordinate: CLLocationCoordinate2D)

    Parameters

    coordinate

    The coordinate of this annotation.

    Return Value

    Returns an initialized point annotation object.

  • x

    Longitude value of the map point.

    Declaration

    Swift

    public var x: Double { get }
  • y

    Latitude value of the map point.

    Declaration

    Swift

    public var y: Double { get }