MonoTouch.UIKit.UIView.HitTest Method
Determines the most nested view that contains the point.

Syntax

[MonoTouch.Foundation.Export("hitTest:withEvent:")]
public virtual UIView HitTest (System.Drawing.PointF point, UIEvent uievent)

See Also

UIView.PointInside

Parameters

point
The location to test.
uievent

The event that triggered this call.

This parameter can be null.

Returns

The most nested view that contains the point, or null if the point falls outside of the boundaris of the view.

Remarks

This method iterates over all of the visible subviews that have user interaction enabled and that are not entirely transparent to find the most nested view that contains the point. For each of those views, the method UIView.PointInside(System.Drawing.PointF, MonoTouch.UIKit.UIEvent) is invoked to determine if there is a match.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0