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?
Asked
Active
Viewed 131 times
0

Abdurrahman Mubeen Ali
- 1,331
- 1
- 13
- 19

Amir Foghel
- 853
- 1
- 12
- 28
-
1http://stackoverflow.com/questions/4679110/how-do-i-rotate-a-subview-x-degrees – itsazzad Dec 02 '12 at 10:50
1 Answers
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
-
-
Thanks, but its not working for me - for some reason the textView disappear from the screen. – Amir Foghel Dec 02 '12 at 11:29
-
-
1