I am currently developing an application that has camera functionality, with a custom camera screen, with a preview screen and overlay.
I use the AVFoundation classes and methods according to the destruction of UIScreenCapture.
The problem is that the preview data that I get from AVCaptureSession is too large. If I take a screenshot from this screen, and the other with the default iPhone app for iPhone, without moving the iPhone, the zoom difference is far too much.
I need to scale my application so that it is the same as the default for the iPhone app.
I tried changing AVCaptureVideoPreviewLayer.videoGravity to any of the three possible values, to no avail.
Please, any conclusions on this issue are truly appreciated.
source
share