title: how detect swipe gesture direction?
body: <p>i need to detect direction of my swipe gesture and i've got problem with it. gesture is working, but i don't know how to detect direction.
      ... </p>
  
  <pre><code>swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(detectSwipe:)];
  [swipeGesture setNumberOfTouchesRequired:1];
  [swipeGesture setDirection:UISwipeGestureRecognizerDirectionDown | UISwipeGestureRecognizerDirectionUp];
  [appView addGestureRecognizer:swipeGesture];
  
  -(void)detectSwipe:(UISwipeGestureRecognizer *)recognizer { 
  switch (recognizer.direction) {
      case UISwipeGestureRecognizerDirectionUp:
          NSLog(@"smth1");
          break;
  
  
      case UISwipeGestureRecognizerDirectionDown:
          NSLog(@"smth2");
      default:
          break;
  }
  }
  </code></pre>
  
  <p>it's not working :/ </p>