title: Gesture recognizer (swipe) on UIImageView
body: <p>I am trying to NSLog when I swipe over an UIImageView with this code, but it does not work for some reason. Any idea ?</p>
  
  <pre><code>@implementation ViewController
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
      UIImage *image = [UIImage imageNamed:@"image2.png"];
      UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
  
      imageView.frame = [[UIScreen mainScreen] bounds];
  
      [self.view addSubview:imageView];
  
      UISwipeGestureRecognizer *recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(rightSwipeHandle:)];
      [recognizer setNumberOfTouchesRequired:1];
      [imageView addGestureRecognizer:recognizer];
  
  }
  
  - (void)rightSwipeHandle:(UISwipeGestureRecognizer*)gestureRecognizer {
      NSLog(@"right swipe");
  }
  </code></pre>