【发布时间】:2012-04-14 18:30:51
【问题描述】:
我有简单的旋转变换,结合了 alpha,在第一次调用时效果很好,但是第二次旋转没有发生(用户通过点击屏幕来启动这个动画)。
这是我的基本动画功能:
- (void) animateMe:(UIImageView *)myImage delay:(NSTimeInterval)dly
{
[UIView animateWithDuration:1.0
delay:dly
options:UIViewAnimationOptionAutoreverse
animations:^(void){
myImage.alpha = 1.0;
myImage.transform = CGAffineTransformMakeRotation(180.0);
}
completion:^(BOOL finished) {
myImage.alpha = 0.0;
}];
}
【问题讨论】:
标签: animation ios5 cgaffinetransform image-rotation