On 27.08.2011 16:25, Roeland wrote:
> I'm trying to do the same thing in MonoTouch, but I can't get it to work.
> <code>
> public class HtmlContentControl : UIWebView
> {
> // .....
> public override UIView HitTest (PointF point, UIEvent uievent) {
> var result = base.HitTest (point, uievent);
>
> NSSet touches = uievent.AllTouches;
Try this instead of Enumerate():
bool forwardToSuper = true;
foreach (var touch in touches.ToArray<UITouch>()) {
if (touch.TapCount >= 2)
forwardToSuper = false;
}
if (forwardToSuper)
result = base.HitTest (point, uievent);
else
result = this.SuperView;
Robert
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch