【发布时间】:2017-09-20 17:05:20
【问题描述】:
您好,我目前正在使用 UIImagePickerController,它默认裁剪图像平方。有没有办法让它以 16:9 的纵横比进行裁剪?我在网上搜索过,但没有找到太多结果。
【问题讨论】:
-
@BhupatBheda 绝对优秀的控制器 谢谢你三千遍 :)
标签: ios swift uiimagepickercontroller ios-camera
您好,我目前正在使用 UIImagePickerController,它默认裁剪图像平方。有没有办法让它以 16:9 的纵横比进行裁剪?我在网上搜索过,但没有找到太多结果。
【问题讨论】:
标签: ios swift uiimagepickercontroller ios-camera
试试这个GithubLink
let cropVC = ShittyImageCropVC(frame: (self.navigationController?.view.frame)!, image: imageToCrop, aspectWidth: 16, aspectHeight: 9)
self.navigationController?.present(cropVC, animated: true, completion: nil)
【讨论】: