我正在尝试让UIImage具有轻微的上下浮动效果。
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(endSwipeAnimation)];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
[UIView setAnimationRepeatCount:10];
[myImage setAlpha:1.0];
[myImage setAlpha:0.7];
[UIView setAnimationRepeatAutoreverses:NO];
[UIView commitAnimations];有什么办法可以做到这一点吗?
提前感谢
发布于 2011-01-27 19:35:16
[UIView beginAnimations:animationID context:context];
[UIView setAnimationDuration:duration];失踪了..。?
发布于 2012-11-28 20:31:02
在动画之间写下你想要的新效果或改变。
首先将imageView alpha值设置为1,然后将其alpha值更改为0.5或您希望在动画中使用的任何值。
https://stackoverflow.com/questions/4815725
复制相似问题