79356276

Date: 2025-01-14 20:18:29
Score: 0.5
Natty:
Report link

The most important first step is to read the documentation for UIImagePickerController provided by Apple displayed prominently.

The UIImagePickerController class supports portrait mode only. This class is intended to be used as-is and doesn’t support subclassing. The view hierarchy for this class is private and must not be modified...

Just because this view might rotate correctly in UIKit does not mean it will be supported in the future or behave as intended.

Camera capture is handled by AVKit and a video/image capture can be created using this framework. Rotation is handled through your implementation.

I also strongly suggest for anyone needing a more immediate or less complex solution look at Mijick Camera. This framework is highly customizable and easy to work with.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sandoze