• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: gesture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gesture


  • Subject: Re: gesture
  • From: Flavio Donadio <email@hidden>
  • Date: Mon, 06 Aug 2012 19:36:13 -0300

Luca,


The direction is where the swipe ends. UISwipeGestureRecognizerDirectionRight is for left-to-right.


Cheers,
Flavio

On 06/08/2012, at 16:00, email@hidden wrote:

> Hi All.
> Probably my problem is very stupid with a very immediate answer, but I'm very new using storyboard.
>
> I've have 2 pages. in the first page I've the following code:
>
> @property(strong, nonatomic) IBOutlet UISwipeGestureRecognizer *swipeGestureNext;
>
> 1)  swipeGestureNext = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:nil];
> 2)  [swipeGestureNext setDirection:UISwipeGestureRecognizerDirectionLeft];
> 3)  [[self view] addGestureRecognizer:swipeGestureNext];
>
> Then I've used a "Swipe Gesture Recognizer" (connected with swipeGestureNext) and I've connected it, in the storyboard, with the second page.
>
> My problem is that the only direction recognised is from right to left.
>
> Where is my mistake?
>
> Thanks for any answer.
>
> Luca.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: gesture
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Problem using UIGestureRecognizer
  • Next by Date: Re: +underPageBackgroundColor
  • Previous by thread: gesture
  • Next by thread: Re: gesture
  • Index(es):
    • Date
    • Thread