我想3D在U轴上动画UIImageView,因此它会做180度旋转。在90 degres我想改变图像。 (这就是为什么我在2)“打破”了动画。与3D动画ios问题
动画效果很好,但问题在于第二张图像是上下颠倒的。任何想法我应该怎么做的图像被绘制正常?
这里是我的代码
i++;
[UIView animateWithDuration:2 animations:^{
self.imageView.layer.transform = CATransform3DMakeRotation(-M_PI/2 , 1, 0,0);
} completion:^(BOOL finished){
UIImage *bottomI = (UIImage *)[bottom objectAtIndex:i];
self.second.image =bottomI;
[UIView animateWithDuration:2 animations:^{
imageView.layer.transform = CATransform3DMakeRotation(M_PI , 1, 0,0);
} completion:^(BOOL finised){
}];
}];
你不能在UIImage上做CGAffineTransformMakeRotation – user1078065