我试图让 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];
任何想法如何做到这一点?
提前致谢