Instance Property


The factor that determines the rendering accuracy for curved path segments.


@property(nonatomic) CGFloat flatness;


The flatness value measures the largest permissible distance (measured in pixels) between a point on the true curve and a point on the rendered curve. Smaller values result in smoother curves but require more computation time. Larger values result in more jagged curves but are rendered much faster. The default flatness value is 0.6.

In most cases, you should not change the flatness value. However, you might increase the flatness value temporarily to minimize the amount of time it takes to draw a shape temporarily (such as during scrolling).

See Also

Accessing Drawing Properties


The line width of the path.


The shape of the paths end points when stroked.


The shape of the joints between connected segments of a stroked path.


The limiting value that helps avoid spikes at junctions between connected line segments.


A Boolean indicating whether the even-odd winding rule is in use for drawing paths.

- setLineDash:count:phase:

Sets the line-stroking pattern for the path.

- getLineDash:count:phase:

Retrieves the line-stroking pattern for the path.