我很新的iOS动画,我想知道是否有可能结合两个图像之间的转换以及使用CGAffineTransform的UIImageView的翻译动画?iOS5将CGAffineTransform与animationImages结合在一起?
换句话说,我有两张我想在两者之间进行动画处理的图像,然后我想应用同步翻译,以便在整个页面上移动,同时在两个图像之间来回移动。
我知道我可以应用CGAffineTransformConcat来合并两个CGAffineTransforms,例如CGAffineTransformTranslate和其他东西。但是我没有看到CGAffineTransform允许我转换到另一个UIImage。
我知道在图像之间进行动画处理的唯一方法是使用UIImageView animationImages阵列与startAnimating相结合。然而,我不知道如何结合这样的翻译如下:
UIImageView* textView = [[UIImageView alloc] initWithFrame:bunnyImage.frame];
textView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"bunnyclose.png"],
[UIImage imageNamed:@"bunnytalk.png"],
nil];
textView.animationDuration = 1.0;
textView.animationRepeatCount = 8;
[textView startAnimating];
[self.view addSubview:textView];
有什么建议吗?