Core Animation acts directly on CALayer, not UIVIew;
Core Animation, Chinese translation for core animation, it is a set of very powerful animation processing API, use it to make very dazzling animation effects, and often get twice the result with half the effort. That said, very powerful functionality can be achieved with a small amount of code.
Core Animation is cross-platform and can be used in both Mac and iOS.
Core Animation animations are background operations, so they do not block the main thread. (Do not block the main thread, that is, Apple actively releases the block object for us after executing the animation block, which can also be understood as performing operations while executing the animation).
How to use Core Animation
1. To use it, you need to add the QuartzCore.framework framework and introduce the main header file first
Use of CAAnimation ( 核心)
CAAnimation class inheritance structure diagram
CAAnimation is the parent class of all animation classes, but it cannot be used directly, and its subclasses should be used. ( 注意)
The parent class of all animation objects is responsible for controlling the duration and speed of animation. It is an abstract class and cannot be used directly. Its specific subclasses should be used.