objective c - changing "cameraDevice" to rear and front (beside UIImagePickerController) -


is there other api provide changing "cameradevice" rear , front? beside "uiimagepickercontroller" 's cameradevice property?

this function allowed me solve problem.

- (avcapturedevice *)frontfacingcamera {     nsarray *videodevices = [avcapturedevice deviceswithmediatype:avmediatypevideo];     avcapturedevice *capturedevice = nil;     (avcapturedevice *device in videodevices)     {         if (device.position == avcapturedevicepositionfront) {             capturedevice = device;             break;         }     }     return capturedevice; } 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

debian - 500 Error upon login into Plesk Admin - auth.php3? -