iOS - How to customize the crop rect in UIImagePickerController with allowsEditing on?

烂漫一生 提交于 2019-12-31 10:30:14

问题


Is there any way to define the crop area rect using the camera image picker?


回答1:


Unfortunately, no.

You have to implement a custom cropping GUI to get anything other than the default, as stated in the Camera Programming Topics for iOS:

"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



来源:https://stackoverflow.com/questions/2306861/ios-how-to-customize-the-crop-rect-in-uiimagepickercontroller-with-allowsediti

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!