问题
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