我正在使用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];
如何在允许用户进行“移动和缩放”编辑的同时,允许用户进行裁剪而不受正方形比例限制?