Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Как повернуть UILabel на -90/90/180 градусов.
// 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
You can’t perform that action at this time.