我在使用UIImagePickerController时遇到了问题,其中allowsEditing = YES。我无法从底部裁剪图像,但当移动裁剪矩形时,顶部也会有额外的空白。
还有一个方法。
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
我记录信息,但是它给我错误的CropRect(不是正方形!)
UIImagePickerControllerCropRect = "NSRect: {{0, 357}, {666, 646}}";
UIImagePickerControllerEditedImage = "<UIImage: 0x7f9b8aa47b30> size {640, 618} orientation 0 scale 1.000000";
UIImagePickerControllerMediaType = "public.image";
UIImagePickerControllerOriginalImage = "<UIImage: 0x7f9b8868e5a0> size {1500, 1001} orientation 0 scale 1.000000";
有人遇到这个bug了吗?如何解决呢?
请看下面的图片: