Type Method

isCameraDeviceAvailable:

Returns a Boolean value that indicates whether a given camera is available.

Declaration

+ (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice)cameraDevice;

Parameters

cameraDevice

A UIImagePickerControllerCameraDevice constant indicating the camera whose availability you want to check.

Return Value

YES if the camera indicated by cameraDevice is available, or NO if it is not available.

See Also

Configuring the Camera to Use

cameraDevice

The camera used by the image picker controller.

UIImagePickerControllerCameraDevice

The camera to use for image or movie capture.