How to know if iPhone camera is ready to take picture?

后端 未结 7 1932
清酒与你
清酒与你 2020-12-05 06:54

When [camera takePicture] is called before the camera is ready, it spits out this message:

UIImagePickerController: ignoring request to take pictu

7条回答
  •  孤街浪徒
    2020-12-05 07:37

    To be honest I haven't tried it and the documentation is somewhat ambiguous, but what about [UIImagePickerController isCameraDeviceAvailable:...]?

    EDIT: As I just learned, this is not the solution for your problem. Sorry, I thought it might be worth a try...

提交回复
热议问题