ios 贝塞尔动画
CGPoint fromPoint = self.imageView.center;
????
????//路徑曲線
????UIBezierPath *movePath = [UIBezierPath bezierPath];
????[movePath moveToPoint:fromPoint];
????CGPoint toPoint = CGPointMake(300, 460);
????[movePath addQuadCurveToPoint:toPoint
???????????????????? controlPoint:CGPointMake(280,0)];
????//關(guān)鍵幀
????CAKeyframeAnimation *moveAnim = [CAKeyframeAnimation animationWithKeyPath:@"position"];
????moveAnim.path = movePath.CGPath;
????moveAnim.removedOnCompletion = YES;
????[self.imageView.layer addAnimation:moveAnim forKey:nil];
轉(zhuǎn)載于:https://www.cnblogs.com/SimonGao/p/6774106.html
總結(jié)
- 上一篇: ORACLE利用STANDBY端RMAN
- 下一篇: SON Web Token设计单点登录系