if it works as I think it does UISwipeGestureRecogniser.Direction controls
which direction causes the recogniser to fire.
Set swipe.Direction
= 
UISwipeGestureRecognizerDirection.Left||UISwipeGestureRecognizerDirection.Right
if you want the same action fired on right and left, otherwise you'll need
two recognisers.

O

On 12 January 2012 19:39, dharry [via MonoTouch] <
[email protected]> wrote:

> Hi All, ****
>
> ** **
>
> I am sure I am missing something pretty basic but I can’t get my swipe
> left to work :/****
>
> ** **
>
> Swiping right works fine but swiping left never fires… am I missing the
> point somewhere?****
>
> ** **
>
> My code is real simple:****
>
> ** **
>
> UISwipeGestureRecognizer swipe = new UISwipeGestureRecognizer();****
>
> swipe.AddTarget(() => {****
>
>                 if (swipe.Direction ==
> UISwipeGestureRecognizerDirection.Right) ****
>
>                 {****
>
>                                 Console.WriteLine ("Swipe Right);****
>
>                 } else {****
>
>                                 Console.WriteLine ("Swipe Left);****
>
>
> }
> ****
>
> });****
>
> this.tableView.AddGestureRecognizer(swipe);****
>
> ** **
>
> Cheers****
>
> Dean****
>
> ** **
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4288009&i=0>
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://monotouch.2284126.n4.nabble.com/Swiping-left-tp4288009p4288009.html
>  To start a new topic under MonoTouch, email
> [email protected]
> To unsubscribe from MonoTouch, click 
> here<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3346893&code=b3dlbm1jZXZhbnNAZ21haWwuY29tfDMzNDY4OTN8LTg1NzM1MjQxOQ==>
> .
> NAML<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Swiping-left-tp4288009p4295744.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to