摘要: 在《CALayer 自定义属性绘制动画》中讲解通过CALayer 自定义动画属性绘制圆,使用CABasicAnimation添加绘制动画,下面通过CGPath绘制圆使用CAKeyframeAnimation添加绘制动画UIBezierPath *path = [UIBezierPathbezierP... 阅读全文
posted @ 2014-11-10 16:36 shuleihen 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 创建CircleLayer继承CALayer,添加新属性angle。@interfaceCircleLayer :CALayer@property(nonatomic,assign)CGFloatangle;@end覆盖父类方法,添加新的属性动画键值,返回YES表示给定的属性发生变化时导致layer... 阅读全文
posted @ 2014-11-10 16:06 shuleihen 阅读(525) 评论(0) 推荐(0) 编辑