0

I want to add a UITextView to another view (as shown below) and want it to be 15-20 degrees rotated. How can it be done?

enter image description here

Abdurrahman Mubeen Ali
  • 1,331
  • 1
  • 13
  • 19
Amir Foghel
  • 853
  • 1
  • 12
  • 28

1 Answers1

2

You need to use transformation for that.

textView.transform = CGAffineTransformRotate(textView.transform, M_PI*45/180);

I am not really sure about the angle. I hope that helps.

Abdurrahman Mubeen Ali
  • 1,331
  • 1
  • 13
  • 19
DevTorch
  • 131
  • 1
  • 6