I use the standard iOS image cropping function (move and zoom) to crop the image before sending it to the server.
However, I understand that the provided crop has a square ratio (see screenshot below)

The following is a snippet of code:
//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];
How to allow editing "move and zoom" and at the same time allow the user to crop without the limitation of the square ratio?
ios uiimagepickercontroller crop square
Zhen
source share