MKCircleRenderer Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/MapKit.framework
Availability
Available in iOS 7.0 and later.
Declared in
MKCircleRenderer.h

Overview

The MKCircleRenderer class provides a visual representation for an MKCircle overlay object. This renderer draws by filling and stroking the circle represented by the overlay object. You can change the color and other drawing attributes of the circle by modifying the properties inherited from the parent class. You typically use this class as is and do not subclass it.

You create an instance of this class in your map view delegate’s mapView:rendererForOverlay: method.

Tasks

Initializing the Renderer Object

Accessing the Overlay Object

Properties

circle

The circle overlay object that contains the information used to draw the overlay. (read-only)

@property(nonatomic, readonly) MKCircle *circle
Availability
  • Available in iOS 7.0 and later.
Declared In
MKCircleRenderer.h

Instance Methods

initWithCircle:

Initializes and returns a new overlay view using the specified circle overlay object.

- (id)initWithCircle:(MKCircle *)circle
Parameters
circle

The circle overlay containing the information about the circular area to be drawn. The renderer maintains a strong reference to the object you provide. This parameter must not be nil.

Return Value

An initialized circle renderer object.

Availability
  • Available in iOS 7.0 and later.
Declared In
MKCircleRenderer.h