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.
2つのUISliderを使用して、ビューのスケールと回転を調整しています。
ビューの回転を変更してからスケールを変更すると、回転が0に戻り、スケールも初期化されます。
スケールを設定および変更するときに回転を一定に保つにはどうすればよいですか?
次のように変換を連結する必要があります。CGAffineTransformConcat(CGAffineTransformMakeScale(scaleX, scaleY), CGAffineTransformMakeRotation(angle));
CGAffineTransformConcat(CGAffineTransformMakeScale(scaleX, scaleY), CGAffineTransformMakeRotation(angle));