How can you rotate text for UIButton and UILabel in Objective-C?

ios, objective-c, rotation, uibutton, uilabel

Solution

[*yourlabelname* setTransform:CGAffineTransformMakeRotation(-M_PI / 2)];

rotated image

pervious image

Problem

How can you rotate text for `UIButton` and `UILabel`? 90 degrees, 180 degrees.

Original source

Related problems