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.7k stars 938 forks source link

Force image to square ratio. #29

Closed valtambok closed 8 years ago

valtambok commented 8 years ago

Is there a way to force the cropView to be locked at a square ratio (and hide crop/clamp button)?

zobnec commented 8 years ago

Yeah.I also want how to lock it!

sammy-SC commented 8 years ago

Hello,

check out this fork https://github.com/siong1987/TOCropViewController/tree/default-aspect-ratio it adds lock ration functionality.

TimOliver commented 8 years ago

Thanks a lot for that guys! I've merged that branch in, so locking the crop view to a specific ratio is now possible!