Type Method

bezierPathWithOvalInRect:

Creates and returns a new UIBezierPath object initialized with an oval path inscribed in the specified rectangle

Declaration

+ (instancetype)bezierPathWithOvalInRect:(CGRect)rect;

Parameters

rect

The rectangle in which to inscribe an oval.

Return Value

A new path object with the oval path.

Discussion

This method creates a closed subpath that approximates the oval using a sequence of Bézier curves. The path is created in a clockwise direction (relative to the default coordinate system). If the rect parameter specifies a square, the inscribed path is a circle.

See Also

Creating a UIBezierPath Object

+ bezierPath

Creates and returns a new UIBezierPath object.

+ bezierPathWithRect:

Creates and returns a new UIBezierPath object initialized with a rectangular path.

+ bezierPathWithRoundedRect:cornerRadius:

Creates and returns a new UIBezierPath object initialized with a rounded rectangular path.

+ bezierPathWithRoundedRect:byRoundingCorners:cornerRadii:

Creates and returns a new UIBezierPath object initialized with a rounded rectangular path.

+ bezierPathWithArcCenter:radius:startAngle:endAngle:clockwise:

Creates and returns a new UIBezierPath object initialized with an arc of a circle.

+ bezierPathWithCGPath:

Creates and returns a new UIBezierPath object initialized with the contents of a Core Graphics path.

- bezierPathByReversingPath

Creates and returns a new Bézier path object with the reversed contents of the current path.

- init

Creates and returns an empty path object.