kirbyt/KTOneFingerRotationGestureRecognizer — Issue #3: How can i translate an image after image rotation
Author: rajatmohanty
Created: 2011-11-03 13:46:25+00:00
State: open

I am able to do rotation by using single finger but when i tried to translate the images by using double that are not moving.

- (void)translate:(UIPanGestureRecognizer *)gesture {
if ((gesture.state == UIGestureRecognizerStateChanged) ||(gesture.state == UIGestureRecognizerStateEnded))
{

CGPoint translation = [gesture translationInView:self];
self.transform = CGAffineTransformTranslate(self.transform, translation.x, translation.y);
[gesture setTranslation:CGPointZero inView:self];

}

}