PEPhotoCropEditor
PEPhotoCropEditor copied to clipboard
Keeping crop aspect ratio constant even when resizing the crop frame
Assume we give a Constrain value 16*9. How can we keep that ratio all the time till editing complete? In current version, if we resize the cropping frame, the selected aspect ratio is changing. I need to keep ratio value constant once we select it till we done editing.
I'm interested in this as well. Or disabling resize of the cropping frame altogether.
In the openEditor method, have you tried this:
controller.keepingCropAspectRatio = YES; controller.cropAspectRatio = 16.0f / 9.0f;
Inside viewDidAppear for PECropViewController, insert:
self.cropView.cropAspectRatio = 16.0f / 9.0f; self.keepingCropAspectRatio = YES;
I set aspect ratio to self.cropView.cropAspectRatio = 3.2 but getting change when applying zoom in/zoom out move.