title: Pass pinch gesture from custom UIView to parent UIScrollView
body: <p>I've got a custom <code>UIView</code> as a subview in a <code>UIScrollView</code>. </p>
  
  <p>When <code>selected</code>, the user can resize the subview by pinching anywhere on the screen (the sub view is fairly small). </p>
  
  <p>When <code>deselected</code>, I would like this pinch gesture to be passed on to the UIScrollView so that it can handle it as it normally does.</p>
  
  <p>Here is what I'm trying. </p>
  
  <pre><code>- (IBAction)pinchInView:(UIPinchGestureRecognizer *)sender {
  
      if (self.item.isSelected) 
      {
          if ((sender.state == UIGestureRecognizerStateChanged) || (sender.state == UIGestureRecognizerStateEnded))
          {
              [self.item resizeWithScaleFactor:sender.scale];
          }
      } else 
      {
          [self.scrollView setZoomScale:self.scrollView.zoomScale *= sender.scale];
      }
      sender.scale = 1;
  }
  </code></pre>
  
  <p>While it does work, it seems an awkward way to go about this. </p>
  
  <p>Is there a way to let the UIScrollView handle its own <strong>zooming</strong>?</p>
  
  <p>I'm pretty much using the same approach with pan gestures as well. </p>
  
  <p>If there is any way to make this less awkward, I'd really appreciate your help. </p>