提问如题代码如下
[UIView animateWithDuration:3 animations:^{
[imageview setTransform:(CGAffineTransformMakeTranslation(-600,0))];
[imageview setAlpha:0];
[imageview setAnimationRepeatCount:0];
}
];
查了下文档说
setAnimationRepeatCount设置成0就是循环动画,但是我设置后动画就运行一次,不知如何解决谢谢!