CGFloat rotation = isRotated == YES ? 0 : - M_PI/2; imageView.transform = CGAffineTransformMakeRotation(rotation);