How to angle a uilabel in ios

ios, iphone, uilabel

Solution

Your label shrinks due to setting wrong frame. You should place your label into the `UIView` and rotate this view instead of label. And also check your `UIView` have no any autoresizing anchors enabled.

Problem

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); ```

Original source

Related problems