CAAnimaton动画分为CABasicAnimation & CAKeyframeAnimation CABasicAnimation动画, 顾名思义就是最基本的动画, 老规矩先上代码: //1.先创建一个要执行动画的View UIView *actView = ({ UIView *view = [[UIView alloc] initWithFrame:CGRectMake(, , , )]; view.backgroundColor = [UIColor redColor]; view…