iOS - 如何在启用 allowsEditing 的情况下自定义 UIImagePickerController 中的裁剪矩形?

标签 ios uiimagepickercontroller crop

有什么方法可以使用相机图像选择器来定义裁剪区域吗?

最佳答案

很遗憾,没有。

如 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."

http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/PickinganItemfromthePhotoLibrary.html#//apple_ref/doc/uid/TP40010408-SW1

关于iOS - 如何在启用 allowsEditing 的情况下自定义 UIImagePickerController 中的裁剪矩形?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2306861/

相关文章:

ios - swift 的动态类名

ios5 - 为什么不会在ios5上立即dismissmodalviewcontrolleranimated关闭UIImagePickerController?

javascript - 使用 JavaScript 裁剪图像在 IE 中有效,但在 Firefox 中无效

c++ - 如何在 OpenCV 中找到菱形角并从中裁剪出较小的矩形?

ios - 逐渐关闭键盘 ios

ios - 在 Swift 2 中重新加载数据时,如何防止表格格式发生变化?

c++ - Objective-C、Objective-C++、C++ 和 Scene Kit

ios - 从 UITableViewCell iOS 打开相机

cocoa - Cocos2d V3使用UIImagePickerController类后无法切换场景

jquery - 使用裁剪工具进行图像裁剪的 Django 应用程序