【发布时间】:2013-01-18 13:44:23
【问题描述】:
我想旋转一个 UIImageView,我正在使用这个代码:
-(IBAction)rotateImageView:(id)sender{
photoView.transform = CGAffineTransformMakeRotation(M_PI); //rotation in radians
}
代码有效。当我按下按钮时,图像会旋转 180 度,但如果我再次按下它,它不会旋转回原来的位置,而是保持静止。为什么??
【问题讨论】: