MKOverlayPathView Class Reference
Available in iOS 4.0 and later.
MKOverlayPathView class represents a generic overlay that draws its contents using a
CGPathRef data type. You can use this class to implement simple path-based overlay views or subclass it to define additional drawing behaviors. The default drawing behavior of this class is to apply the object’s current fill attributes, fill the path, apply the current stroke attributes, and then stroke the path.
If you subclass, you should override the
createPath method and use that method to build the appropriate path for the overlay. You can invalidate this path as needed and force the path to be recreated using whatever new data your subclass has obtained.
In iOS 7 and later, use the
MKOverlayPathRenderer class to display path-based overlays instead.
Accessing the Drawing Attributes
fillColorproperty Deprecated in iOS 7.0
lineCapproperty Deprecated in iOS 7.0
lineDashPatternproperty Deprecated in iOS 7.0
lineDashPhaseproperty Deprecated in iOS 7.0
lineJoinproperty Deprecated in iOS 7.0
lineWidthproperty Deprecated in iOS 7.0
miterLimitproperty Deprecated in iOS 7.0
strokeColorproperty Deprecated in iOS 7.0
Creating and Managing the Path
pathproperty Deprecated in iOS 7.0
– createPathDeprecated in iOS 7.0
– invalidatePathDeprecated in iOS 7.0