CABasicAnimation *ani = [CABasicAnimation animationWithKeyPath:@"position"];
//同时设置这两行代码可以让控件停在结束位置
ani.removedOnCompletion = NO;
ani.fillMode=kCAFillModeForwards;
iOS 动画执行完停在结束位置
最新推荐文章于 2021-12-14 11:13:32 发布
CABasicAnimation *ani = [CABasicAnimation animationWithKeyPath:@"position"];
//同时设置这两行代码可以让控件停在结束位置
ani.removedOnCompletion = NO;
ani.fillMode=kCAFillModeForwards;