如何在 iOS 中旋转 UILabel

How to rotate UILabel in iOS

我想知道如何根据附件作为水印 ("Expired") 在 xcode 中旋转 UILabel。

使用

yourLabel.transform = CGAffineTransformMakeRotation(M_PI /2); // set the dividend what you like

其他参考见此 --> How to angle a uilabel in ios