"移动和缩放屏幕"如何确定其裁剪框的尺寸?
基本上我想为"CropRect"设置固定的宽度和高度,让用户根据需要移动和缩放他的图像以适应该框.
有谁知道如何做到这一点?(或者甚至可以使用UIImagePickerController)
谢谢!
我正在使用IOS标准图像裁剪功能(移动和缩放)裁剪我的图像,然后再将其提交给服务器.
但是,我意识到提供的裁剪有一个平方比例(见下面的截图)

代码片段如下:
//set up image picker
self.imgPicker = [[[UIImagePickerController alloc] init]autorelease];
self.imgPicker.allowsEditing = YES;
self.imgPicker.delegate = self;
//Trigger get photo from library function
self.imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:self.imgPicker animated:YES];
Run Code Online (Sandbox Code Playgroud)
如何允许"移动和缩放"编辑,同时允许用户在没有平方比限制的情况下进行裁剪?