如何在Objective-C中旋转UIButton和UILabel的文本?

如何在Objective-C中旋转UIButton和UILabel的文本?

问题描述:

如何旋转UIButtonUILabel的文本? 90度,180度.

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

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

旋转的图像

上一张图片