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.
[UIView animate...] を使用すると、シミュレーターで遅いアニメーションを切り替えることができます。しかし、レイヤーと CAAnimation を使用している場合、これらのアニメーションは遅くなりません。理由は何ですか?
残念ながら、シミュレーターは UIView アニメーションの速度を切り替えることしかできません。
回避策として、UIWindow または任意のルート ビューの速度プロパティを設定するだけです。
view.layer.speed = 0.1f; // 10x slower animations
これにより、UIView アニメーションを含む、レイヤーのサブ階層内のすべての CAAnimation が遅くなります。