Update Touch/Screens/iPhone/GestureRecognizers/GestureRecognizers_iPhone.xib.cs

This commit is contained in:
Vinicius Jarina 2013-02-19 16:24:39 -03:00
Родитель 6dceb62b4b
Коммит 782d421f76
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -59,9 +59,13 @@ namespace Example_Touch.Screens.iPhone.GestureRecognizers
protected void WireUpTapGestureRecognizer () protected void WireUpTapGestureRecognizer ()
{ {
// create a new tap gesture // 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 (); lblGestureStatus.Text = "tap me image tapped @" + tapGesture.LocationOfTouch (0, imgTapMe).ToString ();
}); };
tapGesture = new UITapGestureRecognizer (action);
// configure it // configure it
tapGesture.NumberOfTapsRequired = 2; tapGesture.NumberOfTapsRequired = 2;
// add the gesture recognizer to the view // add the gesture recognizer to the view