iOS 7からUIKitにキーフレームアニメーションが加わった! iOS6まではキーフレームアニメーションを実現するにはUIKitによるアニメーションよりちょいと複雑なCore AnimationのCAKeyframeAnimationを使っていましたが、iOS 7からUIKitだけでキーフレームアニメーションが実装できるようになりました! UIKitによるアニメーション vs Core Animation まず、UIKitによるアニメーションとCore Animationで何が違うのかをおさらいしておきましょう。 UIKitによるアニメーションは、Core Animationを直接実装するよりも比較的簡単です。以下のサンプルコードを見てみましょう。 以下のコードはビューの背景色を徐々に赤から青に変更するアニメーションをそれぞれ実現しています。 // UIKitによるアニメーション [UI