【发布时间】:2013-09-13 19:05:32
【问题描述】:
是否可以为贝塞尔曲线的点设置动画?我正在尝试从直线平滑过渡到箭头。
这是代码中该行的样子
//// Color Declarations
UIColor* white = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 0.374];
//// Group
{
//// Bezier Drawing
UIBezierPath* bezierPath = [UIBezierPath bezierPath];
[bezierPath moveToPoint: CGPointMake(30.5, 43.5)];
[bezierPath addLineToPoint: CGPointMake(30.5, 29.59)];
[bezierPath addLineToPoint: CGPointMake(30.5, 15.5)];
bezierPath.lineCapStyle = kCGLineCapRound;
bezierPath.lineJoinStyle = kCGLineJoinBevel;
[white setStroke];
bezierPath.lineWidth = 5.5;
[bezierPath stroke];
}
...但是我不知道如何选择一个点并为其设置动画。这甚至可能吗?
【问题讨论】:
标签: ios objective-c animation caanimation