TimOliver / TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects
http://www.timoliver.com.au/2015/06/21/tocropviewcontroller-an-open-source-image-cropper-for-ios/
MIT License
4.73k stars 951 forks source link

when I use cropRegionInsets, the aspect ratio can not be set correctly. #12

Closed tonnylitao closed 8 years ago

tonnylitao commented 9 years ago

when I set cropRegionInsets = = UIEdgeInsetsMake(0, 0, 150, 0); or change the cropView.frame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height-150);

and adjust aspect ratio to 1:1

the croprect is not a square.

TimOliver commented 9 years ago

Can you please paste the code you wrote to present the view controller here?

I originally added cropRegionInsets since I was considering adding a navigation bar at the top and this was to define the maximum bounds of the cropping view. That being said, no matter what the region insets are, it shouldn't mess with the aspect ratio.

TimOliver commented 8 years ago

Closing this off as it was never followed up.