UIImagePickerController Showing Black Preview Screen

后端 未结 8 2250
醉梦人生
醉梦人生 2021-02-08 12:03

I am having a problem when calling the UIImagePickerController to use the camera. Sometimes, but more often than none, the preview screen shows to be black (as the camera itsel

8条回答
  •  滥情空心
    2021-02-08 12:27

    When you're creating the UIImagePickerController change the cameraOverlayView to nil. It worked like a charm for me.

    self.imagePickerController.cameraOverlayView = nil;
    

    And that should be it.

提交回复
热议问题