问题
In swift I've successfully made an animated bezier path
which is contained inside a CAShapeLayer
. My only problem is implementing it onto other screen sizes. Does anybody know how I can scale the CAShapeLayer
with the path inside of it?
i.e. make it half the original size.
回答1:
Use this function:
var shapelayer:CAShapeLayer
shapelayer.transform = CATransform3DMakeScale(, ,)
来源:https://stackoverflow.com/questions/29740090/how-to-scale-a-cashapelayer