简体   繁体   中英

Open Camera in a Custom view

I want to implement a mechanism that lets users, just after launching the application, open camera in a custom view.

For that, I used the AVCam example provided by Apple available Here . But it doesn't work properly. I'll explain more by images:

What I need is that :

概念

What I actually have is that :

界线问题

What I need is really to fill the all view (to have a square image).

Will that be possible using the AVFoundation Framework ?

Thanks and best regards.

Use UIImagePickerController with a custom view. Setup your custom view to appear as you need it, and use the cameraOverlayView to add it to the image picker. Remember to set showsCameraControls to NO to remove native controls.

When tapping your camera button, call the picker's takePicture method to take the picture.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM