I wrote an application that sets some camera values (duration, quality, etc) using UIImagePickerController and it works fine. However, on an iPhone 4, I start with the front camera and if the user switches to the rear camera, the quality settings are lost. Is there a way that I can test if the user switches between the front and rear camera?
By using
if (imagePicker.cameraDevice=UIImagePickerControllerCameraDeviceFront)
it will tell me if the camera is set to the front camera but if the user switches cameras using the screen switcher, it won't return the camera value.
Any help here would be greatly appreciated.