Last active
December 15, 2022 09:27
-
-
Save amirhanov/b697f3b75d168cdbe1e59c316882e465 to your computer and use it in GitHub Desktop.
Как повернуть UILabel на -90/90/180 градусов.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 190 | |
yourLabelName.transform = CGAffineTransform(rotationAngle: CGFloat.pi / 2) | |
// 180 | |
yourLabelName.transform = CGAffineTransform(rotationAngle: CGFloat.pi) | |
// -90 | |
yourLabelName.transform = CGAffineTransform(rotationAngle: -CGFloat.pi / 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment