LoadingAnimation实现重要步骤解析
2015-09-09 本文已影响0人
i0S_毛_宇
效果如下图:

重要步骤:
1 设置CAShapeLayer的Path为圆;
2 设置CAShapeLayer的strokeEnd;
3 设置CAShapeLayer的lineCap;
4 创建CABasicAnimation(keyPath:"transform.rotation");
5 设置CAShapeLayer的Animation;
效果如下图:
重要步骤:
1 设置CAShapeLayer的Path为圆;
2 设置CAShapeLayer的strokeEnd;
3 设置CAShapeLayer的lineCap;
4 创建CABasicAnimation(keyPath:"transform.rotation");
5 设置CAShapeLayer的Animation;