摘要:
使用CGAffineTransformMake方法。对应参数对应矩阵:x' y'就是转换后的坐标。more :http://www.cnblogs.com/delonchen/archive/2011/08/03/iostransform.html 阅读全文
摘要:
设置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 阅读全文