Instance Property

currentPoint

The current point in the graphics path.

Declaration

@property(nonatomic, readonly) CGPoint currentPoint;

Discussion

The value in this property represents the starting point for new line and curve segments. If the path is currently empty, this property contains the value CGPointZero.

See Also

Constructing a Path

- moveToPoint:

Moves the receiver’s current point to the specified location.

- addLineToPoint:

Appends a straight line to the receiver’s path.

- addArcWithCenter:radius:startAngle:endAngle:clockwise:

Appends an arc to the receiver’s path.

- addCurveToPoint:controlPoint1:controlPoint2:

Appends a cubic Bézier curve to the receiver’s path.

- addQuadCurveToPoint:controlPoint:

Appends a quadratic Bézier curve to the receiver’s path.

- closePath

Closes the most recently added subpath.

- removeAllPoints

Removes all points from the receiver, effectively deleting all subpaths.

- appendPath:

Appends the contents of the specified path object to the receiver’s path.

CGPath

The Core Graphics representation of the path.

- CGPath

The Core Graphics representation of the path.