I have a UILabel. I need to rotate it programmatically.
I have my horizontal UILabel, for example, with a frame: x:0, y:0, w: 200, h:80 .
Now I would like to rotate the label to make it vertical: I try this code:
[self setTransform:CGAffineTransformMakeRotation(M_PI_2 / 2)]
I see that the contained text is rotated. But I would like to rotate the whole frame: with my code, UILabel continues to have the same frame.
source share