Instance Property

empty

A Boolean value indicating whether the path has any valid elements.

Declaration

@property(readonly, getter=isEmpty) BOOL empty;

Discussion

Valid path elements include commands to move to a specified point, draw a line or curve segment, or close the path. Thus, a path is not considered empty even if all you do is call the moveToPoint: method.

See Also

Hit Detection

- containsPoint:

Returns a Boolean value indicating whether the area enclosed by the receiver contains the specified point.

bounds

The bounding rectangle of the path.