swift - Applying two consecutive transformations on a UIView -
how can apply scale , rotation transformation view? when use code below, last transformation applied.
testv.transform = cgaffinetransformrotate(view.transform, keeprotation) testv.transform = cgaffinetransformscale(view.transform, keepscale, keepscale)
got work this:
var transformation1 = cgaffinetransformrotate(view.transform, keeprotation) var transformation2 = cgaffinetransformscale(view.transform, keepscale, keepscale) testv.transform = cgaffinetransformconcat(transformation1, transformation2)
Comments
Post a Comment