Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 304
Alex Avatar asked Jan 13 '23 14:01

Alex


1 Answers

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

like image 84
ZYiOS Avatar answered Jan 21 '23 09:01

ZYiOS