Instance Method

preciseLocationInView:

Returns a precise location for the touch, when available.

Declaration

- (CGPoint)preciseLocationInView:(UIView *)view;

Parameters

view

The view that contains the touch.

Return Value

A precise location for the touch.

Discussion

Use this method to get additional precision for a touch (when available). Do not use the returned point for hit testing. In some cases, hit testing can indicate that the touch is within a view, but hit testing against the more precise location may indicate that the touch is outside of the view.

See Also

Getting the Location of a Touch

- locationInView:

Returns the current location of the receiver in the coordinate system of the given view.

- previousLocationInView:

Returns the previous location of the receiver in the coordinate system of the given view.

view

The view to which touches are being delivered, if any.

window

The window in which the touch initially occurred.

majorRadius

The radius (in points) of the touch.

majorRadiusTolerance

The tolerance (in points) of the touch’s radius.

- precisePreviousLocationInView:

Returns a precise previous location for the touch, when available.