Initializer

init(points:count:interiorPolygons:)

Creates and returns an MKPolygon object from the specified set of map points and interior polygons.

Declaration

convenience init(points: UnsafePointer<MKMapPoint>, count: Int, interiorPolygons: [MKPolygon]?)

Parameters

points

The array of map points defining the shape. The data in this array is copied to the new object.

count

The number of items in the points array.

interiorPolygons

An array of MKPolygon objects that define one or more cutout regions for the receiver’s polygon.

Return Value

A new polygon object.

See Also

Creating a Polygon Overlay

init(points: UnsafePointer<MKMapPoint>, count: Int)

Creates and returns an MKPolygon object from the specified set of map points.

init(coordinates: UnsafePointer<CLLocationCoordinate2D>, count: Int)

Creates and returns an MKPolygon object from the specified set of coordinates.

init(coordinates: UnsafePointer<CLLocationCoordinate2D>, count: Int, interiorPolygons: [MKPolygon]?)

Creates and returns an MKPolygon object from the specified set of coordinates and interior polygons.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software