读书人

怎么设置 imageview 平移动画循环

发布时间: 2013-01-04 10:04:18 作者: rapoo

如何设置 imageview 平移动画循环
提问如题

代码如下
[UIView animateWithDuration:3 animations:^{
[imageview setTransform:(CGAffineTransformMakeTranslation(-600,0))];
[imageview setAlpha:0];
[imageview setAnimationRepeatCount:0];
}
];


查了下文档说
setAnimationRepeatCount设置成0就是循环动画,但是我设置后动画就运行一次,不知如何解决谢谢!
[解决办法]
呃。。。恭喜LZ,我来接分
[解决办法]
怎么设置 imageview 平移动画循环

读书人网 >Iphone

热点推荐