Olex
Olex

Reputation: 1656

UIImagePicker disable camera zooming

I add overlay with UIGestures atop of the UIImagePicker camera view and I need to disable camera zooming because it fires when I zoom in or out the overlay with pinch especially when user zoom out overlay image too much. I can't find information how to prevent this behaviour. If it's not possible for UIImagePicker, do I need to switch to AVCaptureSession?

Upvotes: 4

Views: 1665

Answers (1)

ZYiOS
ZYiOS

Reputation: 5280

I figure it out finally by using [ImagePickerController.view addSubView:myOverlayView] instead of ImagePickerController.overlayView = myoverlayView. Hope this help u.

Upvotes: 9

Related Questions