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?
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.