开发者

UIImagePickerController camera freezes when flash goes off on iPhone 4

开发者 https://www.devze.com 2023-01-05 17:59 出处:网络
开发者_Go百科Using the camera to capture an image ... everything works fine UNLESS the flash goes off (which is does automatically in low light situations).

开发者_Go百科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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消