Cameraview

Hi Everyone,

I'm making a broadcast app. In this app I have an UIView and 3 buttons:

  • 1 button for the ultra wide camera.
  • 1 button for the wide camera.
  • 1 button for the tele photo lens.

How can I display the camera view in the UIView if I pressed one the buttons?

Thanks, Robby Flockman

Hello,

There are many different ways that you could display the video preview of an AVCaptureSession. The simplest approach is likely AVCaptureVideoPreviewLayer. For an example of this layer in action, please reference the AVCam sample project.

Cameraview
 
 
Q