Skip to content

Instantly share code, notes, and snippets.

@amirhanov
Last active December 15, 2022 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save amirhanov/b697f3b75d168cdbe1e59c316882e465 to your computer and use it in GitHub Desktop.
Save amirhanov/b697f3b75d168cdbe1e59c316882e465 to your computer and use it in GitHub Desktop.
Как повернуть 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