TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

Rotate 180 degrees instead of 90 degrees

Open mowebkrunal opened this issue 8 years ago • 2 comments
trafficstars

Hi, I want to Rotate 180 degrees instead of 90 degrees, how do I do this using this library?

mowebkrunal avatar Jun 12 '17 13:06 mowebkrunal

Hi!

Hmm, if you don't care about animating it, you could just set the angle property on TOCropViewController. If you want to animate it, the easiest thing to do would be call - (void)rotateImageNinetyDegreesAnimated:(BOOL)animated clockwise:(BOOL)clockwise on the TOCropView twice.

It probably wouldn't be too hard to extend the rotation animation logic to handle 180 degree. Feel free to file a PR! :)

In future, please do not delete the issue template. It would be nice if I could get more information on what your specific use-case is. :)

TimOliver avatar Jun 18 '17 07:06 TimOliver

Hi, yes right away I will do that in future and yes I did this without animation and it works awesome.

mowebkrunal avatar Jun 19 '17 04:06 mowebkrunal