1

名称与 CAAnimation 相关联:

[self.layer addAnimation:animation forKey:@"name"];

如何将名称与使用 UIView 启动的动画相关联-animateWithDuration:?我想这样做,所以我只能取消这个动画,希望通过调用

[self.layer removeAnimationForKey:@"name"];
4

0 回答 0