0
I am implementing a screen that I would like to show the image of the camera, but I would just like to show the image, not with features of switching to front camera, cancel, and capture. Is there any way to do that?
So far I could only show with the features, but I just want to show the image where the camera is pointed, without any functionality. I currently use the UIImagePickerController
but searching also found tutorials that show with the AVFoundation
, if you can enlighten me as to the best of them to do this and how it would be possible.
Current code:
var imagePicker: UIImagePickerController = UIImagePickerController()
imagePicker.delegate = self
imagePicker.allowsEditing = false
imagePicker.sourceType = UIImagePickerControllerSourceType.Camera
imagePicker.view.frame = viewCamera.frame
viewCamera.addSubview(imagePicker.view)
At the end you do not want to take picture? From what I understand you want to take the video from the camera and show it in a
UIView
, right? If the goal is this you can use theAVCaptureSession
ofAVFoundation
even.– Douglas Ferreira
That, exactly.
– Gian