0

I have a UIImagePickerController , in source type camera. Some times the camera shutter doesn't open but, I can take photo.

Sometimes it works fine?

enter image description here

I using sub class of UIImagePickerController

- (id)init{

    self = [super init];
        if (self) {
    if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]){


                    [self setSourceType:UIImagePickerControllerSourceTypeCamera];

                     self.showsCameraControls =NO;
                    [self setWantsFullScreenLayout:YES];
                    self.cameraOverlayView = bottomToolBar;
                    self.cameraOverlayView = topToolBar;

                }
                else{
                    [self setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
                }
        }
    }

bottomToolBar and topToolBar are toolbar.

anybody can help me.

Vineesh TP
  • 7,755
  • 12
  • 66
  • 130

1 Answers1

0

I had the same problem. There are similar threads on SO. Unfortunately none of them worked for me and I had to resort to re-instantiating the image picker every time it is opened.

You should read these two threads to see if any of their solutions work for you.

UIImagePickerController's shutter

Custom ios camera shutter not opening?

Community
  • 1
  • 1
ddevaz
  • 2,253
  • 1
  • 17
  • 10