Camera with Custom View

后端 未结 4 687
再見小時候
再見小時候 2020-11-28 01:25

My Application uses camera, I would like to add overlay over the camera preview. For example, I want to use a picture frame when I use Camera, also I would like to add a cus

4条回答
  •  清歌不尽
    2020-11-28 02:17

    Read the UIImagePickerController Class Reference, that's right in the documentation…

    There are properties for this, especially the cameraOverlayView and showsCameraControls properties.

    So you can hide the controls, provide a custom overlay view, and add subviews to this custom view to add custom buttons, frames, etc.

提交回复
热议问题