// CABasicAnimation *anim = [CABasicAnimation animationWithKeyPath: @”position”];
// anim.duration = 0.5;
// anim.fromValue = [NSValue valueWithCGPoint:CGPointMake(self.teamLabel.x, self.teamLabel.y + 15)];
// anim.toValue = [NSValue valueWithCGPoint:CGPointMake(self.teamLabel.x, self.teamLabel.y)];
// anim.delegate = self;
// anim.removedOnCompletion = NO;
// anim.fillMode = kCAFillModeForwards;
以前的向上移动动画
CABasicAnimation 动画示例
最新推荐文章于 2022-05-24 13:55:51 发布
本文介绍了一个使用CABasicAnimation实现的简单动画示例,通过修改位置属性来实现元素的移动效果。
736

被折叠的 条评论
为什么被折叠?



