i'm creating an iphone app.in that application i want to angle the label according to the attached screen shot. (see the $ 120 lable)
The red color image is in the background and i want to angle the uilabel top of it
I have used the transform
method to rotate . But it does not properly angle it. label shrinks
testLabel.transform = CGAffineTransformMakeRotation(30 * M_PI / 180.0);
Try something like this :
label.transform = CGAffineTransformMakeRotation(M_PI / 4); // 45 degree rotation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With