我在使用allowEditing = YES的UIImagePickerController时遇到问题.我无法从底部裁剪图像,但在移动裁剪矩形时,我还有一个额外的空白空间.
也在方法中.
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
Run Code Online (Sandbox Code Playgroud)
我记录信息,它给了我错误的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";
Run Code Online (Sandbox Code Playgroud)
有没有人有这个错误,你如何解决它?
见下图
