Contents

MKPolygon

A closed polygon overlay.

Declaration

class MKPolygon

Overview

The points you add to this overlay connect end-to-end in the order you provide them. The first and last points connect to each other to create a closed shape.

When creating a polygon, you can mask out portions of the polygon by specifying one or more interior polygons. For the polygons you specify, this class uses the even-odd fill rule to determine the final occupied area. When applied to overlapping polygons, this rule can cause the framework to mask specific regions out and thereby remove them from the total occupied area. For more information about how fill rules apply to paths, see Paths in Quartz 2D Programming Guide.

Topics

Creating a polygon overlay

Accessing the interior polygons

See Also

Custom shape overlays