Type Method

bezierPathWithCGPath:

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

Declaration

+ (instancetype)bezierPathWithCGPath:(CGPathRef)CGPath;

Parameters

CGPath

The Core Graphics path from which to obtain the initial path information. If this parameter is nil, the method raises an exception.

Return Value

A new path object with the specified path information.

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.

+ bezierPathWithOvalInRect:

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

+ 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.

- 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.