我正面临与UIImageView
旋转的问题。CATransform3DMakeRotation导致UIimage旋转随着UIimageview
我需要水平旋转UIImageView
,并使用广告等动画。
要做到这一点,我使用以下代码:
[UIView animateWithDuration:1.0
delay:0.0
options:UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionAllowUserInteraction
animations:^{
if (baddview) {
baddview = FALSE;
adimageView.layer.transform = CATransform3DMakeRotation(0, 0, 1, 0);
} else {
baddview = TRUE;
adimageView.layer.transform = CATransform3DMakeRotation(M_PI, 0, 1, 0);
}
}
completion:^(BOOL finished) {
}
];
的ImageView的旋转,因为我需要它,但在图像视图中的图像出现颠倒,像旋转180度(you can see the image here)之后。
如何在不旋转UIImage
的情况下动画UIImageView
旋转?
喜ü要执行什么...? baddview是什么...? – Spynet
是否要旋转图像或不... – Rajneesh071
不,我想要的图像作为原始,只需要动画的Uiimageview –