Sunday 15 May 2011

iphone - How to detect whether front or rear camera is active; Find camera resolution programmatically -


I have to programmatically detect two things:

I use the Developer third party library to image

  • How to detect the camera resolution

    I did not pick up

  • How to detect the camera's active (front / rear)
  • How to detect camera resolution

    UIImagePickerController in camera device both on logic based > Which gives UIImagePickerControllerCameraDevice , whose possible values As is - UIImagePickerControllerCameraDeviceFront and UIImagePickerControllerCameraDeviceRear .

    You can use something like -

      if (aPickerInstance.cameraDevice == UIImagePickerControllerCameraDeviceFront) {// front camera} other {// rear cam}    

  • No comments:

    Post a Comment