Quote:
Originally Posted by Kenrik
You could just use a image...
|
Oh, please, no. There's no need to kluge it with an image.
Simply set the transform property of the label to the angle you need. First, here's a macro for converting from degrees to radians. The function we're going to use in a minute requires radians, but I don't think in radians, so I use this:
Code:
#define degreesToRadian(x) (M_PI * x / 180.0)
Now, just do this:
Code:
myLabel.transform = CGAffineTransformMakeRotation(degreesToRadian(43));
Just change 43 to whatever angle you want. You may need to adjust the x and y location after you do this to make it fit nicely.