有什么方法可以使用相机图像选择器来定义裁剪区域吗?
最佳答案
很遗憾,没有。
如 iOS 相机编程主题中所述,您必须实现自定义裁剪 GUI 才能获得默认设置以外的任何内容:
"When using built-in editing controls, the image picker controller enforces certain options. For still images, the picker enforces a square cropping as well as a maximum pixel dimension. For movies, the picker enforces a maximum movie length and resolution. If you want to let the user edit full-size media, or specify custom cropping, you must provide your own editing UI."
关于iOS - 如何在启用 allowsEditing 的情况下自定义 UIImagePickerController 中的裁剪矩形?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2306861/