android 5阶贝塞尔曲线怎么实现
答案:1 悬赏:0
解决时间 2021-01-12 14:24
- 提问者网友:我是女神我骄傲
- 2021-01-12 09:15
android 5阶贝塞尔曲线怎么实现
最佳答案
- 二级知识专家网友:青灯有味
- 2021-01-12 10:20
CGPoint fromPoint = self.imageView.center; //路径曲线 UIBezierPath *movePath = [UIBezierPath bezierPath]; [movePath moveToPoint:fromPoint]; CGPoint toPoint = CGPointMake(300, 460); [movePath addQuadCurveToPoint:toPoint controlPoint:CGPointMake(280,0)]; //关键帧 CAKeyframeAnimation *moveAnim = [CAKeyframeAnimation animationWithKeyPath:@"position"]; moveAnim.path = movePath.CGPath; moveAnim.removedOnCompletion = YES; [self.imageView.layer addAnimation:moveAnim forKey:nil];
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息