how to change the UIImagePickerController crop frame

后端 未结 3 668
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 20:01

when opening working with an UIImagePickerController and setting allowsImageEditing = YES; there is a default cropping frame that is 320x320. In my case, I would like to se

3条回答
  •  攒了一身酷
    2020-12-08 20:41

    You have to implement it your self.

    The picker only performs 320x320 cropping.

    So instead set

    allowsImageEditing = NO;

    Now you will get the full image back. Then you will have to create a view/view controller that will crop to the proportions you desire.

提交回复
热议问题