I've integrated AVCam in my iOS app. The problem is in iPhone 4 the preview frame isn't fullscreen, it has empty side borders...
How can I solve this?
Thanks.
I've integrated AVCam in my iOS app. The problem is in iPhone 4 the preview frame isn't fullscreen, it has empty side borders...
How can I solve this?
Thanks.
Fixed it with the following method in AVCamPreviewView.
You need to use the
videoGravity
property of theAVCaptureVideoPreviewLayer
.Take a look to the doc. You need to use:
AVLayerVideoGravityResizeAspectFill
Edit:
Based on that the solution founded by the asker is: