我想知道如何在 xcode 中根据附件作为水印旋转 UILabel(“过期”)。
使用
yourLabel.transform = CGAffineTransformMakeRotation(M_PI /2); // set the dividend what you like
其他参考请参阅此 --> 如何在 ios 中调整 uilabel 的角度
斯威夫特5: 现在的 Pi 是:“Double.pi”
yourLabel.transform = CGAffineTransformMakeRotation(Double.pi / 2)