title: UIImageView and UIScrollView zooming
body: <p>Do I actually need a UIPinchGestureRecognizer inside a UIScrollView to have the pinch working? If yes how do I do it? I am trying to implement what flipboard has, where it basically zooms in an image and have the scroll capability after zooming in. How do I do that?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Here's some code that I have which doesn't call the scroll view delegate</p>
  
  <pre><code>CGRect imgFrame;
  imgFrame.size.width = originalImageSize.width;
  imgFrame.size.height = originalImageSize.height;
  imgFrame.origin.x = imageOriginPoint.x;
  imgFrame.origin.y = imageOriginPoint.y;
  
  NSData *data = [request responseData];
  UIImage * image = [UIImage imageWithData:data];
  imageView = [[UIImageView alloc] initWithImage:image];
  [imageView setUserInteractionEnabled:YES];
  [imageView setBackgroundColor:[UIColor clearColor]];
  [imageView setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight];
  [imageView setFrame:CGRectMake(0, 0, imgFrame.size.width, imgFrame.size.height)];
  
  UIScrollView * imgScrollView = [[UIScrollView alloc] initWithFrame:imageView.frame];
  imgScrollView.delegate = self;
  imgScrollView.showsVerticalScrollIndicator = NO;
  imgScrollView.showsHorizontalScrollIndicator = NO;
  [imgScrollView setScrollEnabled:YES];
  [imgScrollView setClipsToBounds:YES];
  [imgScrollView addSubview:imageView];
  [imgScrollView setBackgroundColor:[UIColor blueColor]];
  [imgScrollView setMaximumZoomScale:1.0];
  </code></pre>