take photo with both cameras like frontback

不问归期 提交于 2020-01-03 04:54:10

问题


I am working on an app in which I am using camera. How can we take photo using both cameras like Frontback and DuoCam at the same time on the same screen ?


回答1:


This is called as RearCam & FrontCam

You can use it like

 if (_imagePicker.cameraDevice == UIImagePickerControllerCameraDeviceFront)
    _imagePicker.cameraDevice = UIImagePickerControllerCameraDeviceRear;
else
    _imagePicker.cameraDevice = UIImagePickerControllerCameraDeviceFront;

where _imagePicker -> an instance of the imagepickercontroller



来源:https://stackoverflow.com/questions/17917182/take-photo-with-both-cameras-like-frontback

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!