Instance Method

locationOfTouch:inView:

Returns the location of one of the gesture’s touches in the local coordinate system of a given view.

Declaration

- (CGPoint)locationOfTouch:(NSUInteger)touchIndex inView:(UIView *)view;

Parameters

touchIndex

The index of a UITouch object in a private array maintained by the receiver. This touch object represents a touch of the current gesture.

view

A UIView object on which the gesture took place. Specify nil to indicate the window.

Return Value

A point in the local coordinate system of view that identifies the location of the touch. If nil is specified for view, the method returns the touch location in the window’s base coordinate system.

See Also

Getting the Touches and Location of a Gesture

- locationInView:

Returns the point computed as the location in a given view of the gesture represented by the receiver.

numberOfTouches

Returns the number of touches involved in the gesture represented by the receiver.