قالب وردپرس درنا توس
Home / IOS Development / ios – Upload an image (UIImageView) to image

ios – Upload an image (UIImageView) to image

Is there a way to integrate a UIImageView when taking pictures?

I can't seem to find a topic that discusses this.

What I wanted to do is to have a UIImageView overlay on the preview. When the shutter is drained, it should take the picture with UIImageView embedded in it.

 enter picture description here

So here is where I am right now. The "Test Image" section will be made retractable at the top of the preview display. I want to include the picture with the picture I am going to take when I press the shutter button.

Is this possible? Or is it a better way?

I use AVCaptureVideoPreviewLayer, AVCaptureSession and AVCapturePhotoOutput. I just put UIIMageView over UIView, where AVCaptureVideoPreviewLayer is also a tutorial.

EDIT: The test to save UIView as a picture and it does not include the preview layer (returns only the UIView + UIImageView overlay).

Source link