title: How to disable zoom and keep controls on UIImagePickerController?
body: <p>I would like to use <code>UIImagePickerController</code> to take pictures and disabling the use of the zoom pinch function while not blocking the camera controls when I do a <code>[picker addSubView:myOverlay]</code>.  So I create the following "myOverlayView" class with the hope of intercepting all touches so that my <code>UIImagePickerController</code> camera controls are not affected.</p>
  
  <p>(per this tutorial: <a href="https://josee.me/2011/02/16/overlaying-the-iphone-camera-without-blocking-its-controls/" rel="nofollow">https://josee.me/2011/02/16/overlaying-the-iphone-camera-without-blocking-its-controls/</a>)</p>
  
  <pre><code>// implement UIView Class...
  @implementation myOverlayView : UIView
  
  - (id)initWithFrame:(CGRect)frame {
      if (self = [super initWithFrame:frame]) {
          self.opaque = NO;
          self.backgroundColor = [UIColor clearColor];
      }
      return self;
  }
  
  - (BOOL)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
      NSLog(@"hitTest....hit");
      return nil;
  }
  
  @end
  
  // Call Camera...
  picker.delegate = self;
  picker.allowsEditing = NO;
  picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  
  myOverlayView *myOverlayView1 = [[myOverlayView alloc]init];
  
  [picker.view addSubview:myOverlayView1];
  
  
  [self presentViewController:picker animated:YES completion:NULL];
  </code></pre>
  
  <p>The hitTest:Event method gets hit and the zoom pinch still works after the overlay has been added.
  What am I missing?</p>