iOS: Capture image from front facing camera

前端 未结 5 2043
耶瑟儿~
耶瑟儿~ 2020-12-01 00:56

I am making an application where I would like to capture an image from the front facing camera, without presenting a capture screen of any kind. I want to take a picture com

5条回答
  •  生来不讨喜
    2020-12-01 00:57

    There is a method called takePicture in the docs for UIImagePickerController class. It says:

    Use this method in conjunction with a custom overlay view to initiate the programmatic capture of a still image. This supports taking more than one picture without leaving the interface, but requires that you hide the default image picker controls.

提交回复
热议问题