views:

71

answers:

1

Using the camera to capture an image ... everything works fine UNLESS the flash goes off (which is does automatically in low light situations).

Is anyone else seeing this?

What, if any, solutions are there to this problem?

Thanks

A: 

I have the same issue and found a work around by removing and then reloading the picker:

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)editingInfo{

    [picker dismissModalViewControllerAnimated:NO];
    [self presentModalViewController:picker animated:NO];

however it doesn't work if you have an overlay view (it places the camera view on top of the overlay in the view hierarchy) so I finally used the following setting for the picker

picker.cameraFlashMode =  UIImagePickerControllerCameraFlashModeOn;

in order to block the camera flash...

ErezSO
I'm going to try this out in the next day or two to verify. Btw, I think you meant "UIImagePickerControllerCameraFlashModeOff" in your example code. Thanks btw.
wgpubs