【发布时间】:2011-11-05 18:16:04
【问题描述】:
我想在同一张图片上用同样的方法制作两个 UIView 动画:
-(void)likeThis{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];
[UIView setAnimationDelegate:self];
image.alpha=0;
[UIView commitAnimations];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];
[UIView setAnimationDelegate:self];
image.transform = CGAffineTransformScale(5,5);
[UIView commitAnimations];
}
但是这些 UIView 动画中只有一个可以工作。我不知道为什么。我认为还有另一种方法可以为同一个图像放置两个动画,但我不知道如何。对不起我的英语我是法国人:/
【问题讨论】:
标签: iphone xcode animation methods uiimageview