Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用两个 UISlider 调整视图的缩放和旋转。
当我改变视图的旋转然后改变它的比例时,旋转返回到 0 并且比例也被初始化。
在设置和更改比例时,我应该怎么做才能保持旋转不变?
您应该像这样连接转换:CGAffineTransformConcat(CGAffineTransformMakeScale(scaleX, scaleY), CGAffineTransformMakeRotation(angle));
CGAffineTransformConcat(CGAffineTransformMakeScale(scaleX, scaleY), CGAffineTransformMakeRotation(angle));