Creates and returns an MKPolygon
object from the specified set of map points and interior polygons.
SDKs
- iOS 4.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.2+
Framework
- Map
Kit
Declaration
+ (instancetype)polygonWithPoints:(const MKMap Point *)points count:(NSUInteger)count interiorPolygons:(NSArray<MKPolygon *> *)interiorPolygons;
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.