UIImagePickerController - crops picture to square (in portrait)

后端 未结 3 1153
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 09:28

I\'m using the UIImagePickerController to take and edit a picture. it works fine in landscape, but in portrait it will crop the picture into a square (does not allow to reduce t

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 10:26

    I know its really late to answer this question, But someone may find this helpful.

    Change

    [imagePicker setAllowsEditing:YES]; 
    

    To

    [imagePicker setAllowsEditing:NO];
    

    Thanks, Jay

提交回复
热议问题