0

I am trying to add a user interactive rotation option to iOS app. I don't want to rotate the imageView but want to rotate the UIImage displayed on the imageView. I know how to do it on the imageView.

It is important to add the procedure through which image is provided to the imageView. I first take the image from Camera or Photo Library. Then, I crop the image using a crop tool created. I have followed the following code for the crop:

https://github.com/johnomarkid/BFCropInterface

After the crop I want to rotate the image like Photos Edit option in iPhone. Can anyone help in this regard?

Nasiba
  • 321
  • 2
  • 15
  • Do you want to rotate by 90 degrees? Or just to any angle. Apple iPhone native app allow you rotate to any angle. – Shashi3456643 May 03 '16 at 02:16
  • I want to rotate the UIImage after cropping to any angle! If native app supports, how can it be implemented? – Nasiba May 03 '16 at 02:22
  • I guess first you have to rotate uiimageview using CGAffineTransformRotate after that you have to render uiimageview to image. I haven't done anything I am just giving you idea – Shashi3456643 May 03 '16 at 02:34
  • How is it possible to render uiimageview to image? – Nasiba May 03 '16 at 02:39
  • Check this link how uiview can be render into uiimage http://stackoverflow.com/questions/4334233/how-to-capture-uiview-to-uiimage-without-loss-of-quality-on-retina-display if you find difficulty then put uiimageview to uiview then render uiview to uiimage after rotating uiimageview. – Shashi3456643 May 03 '16 at 02:46
  • Alright! I will give it a shot and let you know. Is there any framework you are aware of that can do such job? – Nasiba May 03 '16 at 02:49
  • 1
    Tomorrow I will check in office will try to implement this feature. I will let you know. – Shashi3456643 May 03 '16 at 02:56

0 Answers0