From 782d421f76452db4d29b9475bd304367b85b19c0 Mon Sep 17 00:00:00 2001 From: Vinicius Jarina Date: Tue, 19 Feb 2013 16:24:39 -0300 Subject: [PATCH] Update Touch/Screens/iPhone/GestureRecognizers/GestureRecognizers_iPhone.xib.cs --- .../GestureRecognizers/GestureRecognizers_iPhone.xib.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Touch/Screens/iPhone/GestureRecognizers/GestureRecognizers_iPhone.xib.cs b/Touch/Screens/iPhone/GestureRecognizers/GestureRecognizers_iPhone.xib.cs index 09554f72..aa26a2fe 100644 --- a/Touch/Screens/iPhone/GestureRecognizers/GestureRecognizers_iPhone.xib.cs +++ b/Touch/Screens/iPhone/GestureRecognizers/GestureRecognizers_iPhone.xib.cs @@ -59,9 +59,13 @@ namespace Example_Touch.Screens.iPhone.GestureRecognizers protected void WireUpTapGestureRecognizer () { // create a new tap gesture - UITapGestureRecognizer tapGesture = new UITapGestureRecognizer (() => { + UITapGestureRecognizer tapGesture = null; + + NSAction action = () => { lblGestureStatus.Text = "tap me image tapped @" + tapGesture.LocationOfTouch (0, imgTapMe).ToString (); - }); + }; + + tapGesture = new UITapGestureRecognizer (action); // configure it tapGesture.NumberOfTapsRequired = 2; // add the gesture recognizer to the view