I have some imageviews that should rotate 90° every time they are touched. This is my code:
- (void)handleTap:(UITapGestureRecognizer *)tapRecognize
{
if (tapRecognize == tapRecognizer)
{
CGAffineTransform transform = CGAffineTransformMakeRotation(90);
lineImage.transform = transform;
[lineImage setTransform:transform];
}
}
This only rotate it first touch, how to I make it rotate 90° more when its taped again?