2012年8月21日
摘要: 使用CGAffineTransformMake方法。对应参数对应矩阵:x' y'就是转换后的坐标。more :http://www.cnblogs.com/delonchen/archive/2011/08/03/iostransform.html 阅读全文
posted @ 2012-08-21 17:24 老Zhan 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 设置layer的path为NSBezierPath对象,再对layer添加animation,注意[CABasicAnimation animationWithKeyPath:@"strokeEnd"] 中的keyPath不能随意更改。CAShapeLayer *l = [CAShapeLayer layer];l.frame = self.view.bounds;l.strokeColor = [UIColor redColor].CGColor;CGPoint start = CGPointMake(arc4random()%300+10, arc4random()%4 阅读全文
posted @ 2012-08-21 11:05 老Zhan 阅读(1901) 评论(0) 推荐(0) 编辑