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 127 times
0
Abdurrahman Mubeen Ali
- 1,322
- 1
- 12
- 19
Amir Foghel
- 797
- 1
- 11
- 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,322
- 1
- 12
- 19
DevTorch
- 131
- 1
- 5
-
-
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