我包裹了一个标签,并希望它显示为垂直。有任何想法吗?enter image description here
使用transform,例如:
transform
label.transform = CGAffineTransform(rotationAngle: .pi/2)