Front facing camera in UIImagePickerController

后端 未结 9 1241
暗喜
暗喜 2020-12-02 06:42

I am developing the front facing camera app in iPad2 by using the UIImagePickerController.

When I capture the image it\'s shows as flipped from left to

9条回答
  •  鱼传尺愫
    2020-12-02 07:20

    I know this question is really old but it seems like this is a still a common problem. Just set a CGAffineTransform on the cameraViewTransform property on a UIImagePickerController object.

    let picker = UIImagePickerController()
    picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, -1, 1)
    

提交回复
热议问题