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

后端 未结 1 919
刺人心
刺人心 2021-02-02 09:56

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

1条回答
  •  深忆病人
    2021-02-02 10:12

    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

    0 讨论(0)
提交回复
热议问题