title: Weird crash while pinching UIScrollView
body: <p>This issue has been driving me nuts for the past few hours. So I've got a very simple UIScrollView setup:</p>
  
  <pre><code>-UIScrollView
      -UIImageView
  </code></pre>
  
  <p>That's it. The scrollview and imageview are generated in Storyboard. Now all I want to do is to have the ability to pinch zoom into this image. Minimum zoom is set to 1 and maximum zoom is 3. The scrollview's delegate is set to my RootViewController</p>
  
  <p>In my RootViewController, I have added this function(Required to support zooming)</p>
  
  <pre><code>- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView{
     return _theImageView;
  }
  </code></pre>
  
  <p>I believe I've done everything right but whenever I pinch the scrollview, I get the great EXE_BAD_ACCESS. I've tried to look everywhere and I can't seem to find the issue. Crash dump attached below</p>
  
  <pre><code>0   libobjc.A.dylib                 0x34b80f7e objc_msgSend + 22
  1   UIKit                           0x3516899e -[UIScrollView _getDelegateZoomView] + 70
  2   UIKit                           0x351908f2 -[UIScrollView _zoomScaleFromPresentationLayer:] + 22
  3   UIKit                           0x3523bf5a -[UIScrollViewPinchGestureRecognizer touchesBegan:withEvent:] + 102
  4   UIKit                           0x35102436 -[UIWindow _sendGesturesForEvent:] + 278
  5   UIKit                           0x351021ee -[UIWindow sendEvent:] + 82
  6   UIKit                           0x350e868e -[UIApplication sendEvent:] + 350
  7   UIKit                           0x350e7f34 _UIApplicationHandleEvent + 5820
  8   GraphicsServices                0x32c85224 PurpleEventCallback + 876
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Maybe I'm too sleepy</p>