Instance Method

containsPoint:

Returns a Boolean value that indicates whether a point lies inside the parent’s coordinate system.

Declaration

- (BOOL)containsPoint:(CGPoint)p;

Parameters

p

A CGPoint to test against.

Return Value

YES if the point lies inside the parent’s coordinate system; otherwise NO.

See Also

Hit Testing

Understanding Hit-Testing

Learn how find child nodes at a given point by using hit-testing.

- nodeAtPoint:

Returns the deepest visible descendant that intersects a point.

- nodesAtPoint:

Returns an array of all visible descendants that intersect a point.