CameraOverlayView of ImagePickerController not displaying correctly?

I use an individual overlay view for the camera in imagePickerController. When I take a picture, I get a preview with the Repeat and Use buttons. Unfortunately, the custom CameraOverlayView is still in portrait mode and swirls the whole picture. Is there any way to remove overlayView. I added overlayView as a sub-view and then called the function [self presentModalViewController: controller animated: YES]; I also use - (void) imagePickerController: (UIImagePickerController *) picker didFinishPickingMediaWithInfo: (NSDictionary *) info; later.

I hope you can help me with this because I’ve been stuck with this for the last two days and have not found any information on the Internet about this.

Thanks, Nikola

+3
source share
1 answer

When you add your view, make sure you use [self.imagePickerController.cameraOverlayView addSubview: self.view] ;.

0
source

All Articles