在Swift 2中,我们可以这样做以获得旋转和伸展:
let rotate = CGAffineTransformMakeRotation(1)
let stretchAndRotate = CGAffineTransformScale(rotate, 0.8, 0.8)
label.transform = stretchAndRotate
Run Code Online (Sandbox Code Playgroud)
在Swift 3中,CGAffineTransformScale已成为CGAffineTransform并且不再接受旋转.
现在将拉伸和旋转应用于对象的最简单方法是什么?
谢谢,
抢