如何在iOS中旋转UILabel

问题描述 投票:0回答:2

我想知道如何在 xcode 中根据附件作为水印旋转 UILabel(“过期”)。

ios xcode uilabel
2个回答
1
投票

使用

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

其他参考请参阅此 --> 如何在 ios 中调整 uilabel 的角度


-1
投票

斯威夫特5: 现在的 Pi 是:“Double.pi”

yourLabel.transform = CGAffineTransformMakeRotation(Double.pi / 2)
© www.soinside.com 2019 - 2024. All rights reserved.