iOS 7 UIImagePickerController has black preview

后端 未结 7 1790
星月不相逢
星月不相逢 2020-11-29 04:29

I have a UIImagePickerController being called with sourceType camera and 80% of the time I get a black preview. If I wait, let\'s say around 30 seconds, I get a good preview

7条回答
  •  孤独总比滥情好
    2020-11-29 05:20

    first of all check whether your app has the permission to access the camera or not.I think you pressed "no" option for the first time the camera launches in the app.Now do one thing. go to Settings->Privacy->Camera then choose your app there check whether its on of off if its off make it on..now you can access the camera in the app.

提交回复
热议问题