title: How to recognize swipe in all 4 directions?
body: <p>I need to recognize swipes in all directions (<strong>Up/Down/Left/Right</strong>). Not simultaneously, but I need to recognize them.</p>
  
  <p>I tried:</p>
  
  <pre><code>  UISwipeGestureRecognizer *Swipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(SwipeRecognizer:)];
    Swipe.direction = (UISwipeGestureRecognizerDirectionLeft | 
                       UISwipeGestureRecognizerDirectionRight |
                       UISwipeGestureRecognizerDirectionDown | 
                       UISwipeGestureRecognizerDirectionUp);
    [self.view addGestureRecognizer:Swipe];
    [Swipe release];
  </code></pre>
  
  <p>but nothing appeared on <code>SwipeRecognizer</code></p>
  
  <p>Here's the code for SwipeRecognizer:</p>
  
  <pre><code>- (void) SwipeRecognizer:(UISwipeGestureRecognizer *)sender {
    if ( sender.direction == UISwipeGestureRecognizerDirectionLeft )
      NSLog(@" *** SWIPE LEFT ***");
    if ( sender.direction == UISwipeGestureRecognizerDirectionRight )
      NSLog(@" *** SWIPE RIGHT ***");
    if ( sender.direction == UISwipeGestureRecognizerDirectionDown )
      NSLog(@" *** SWIPE DOWN ***");
    if ( sender.direction == UISwipeGestureRecognizerDirectionUp )
      NSLog(@" *** SWIPE UP ***");
  }
  </code></pre>
  
  <p>How can I do this? How can assign to my Swipe object all different directions?</p>