I had detected the two finger touch for imageview and given condition that if two finger is touched then pinchGesture have to perform the selector for imageview.
if ([[event allTouches]count] == 2)
{
imageView.multipleTouchEnabled=YES;
imageView.userInteractionEnabled =YES;
twoFingerPinch = [[UIPinchGestureRecognizer alloc]initWithTarget:self action:@selector(twoFingerPinch:)];
}
- (void)twoFingerPinch:(UIPinchGestureRecognizer *)recognizer
{
CGFloat scale = recognizer.scale;
imageView.transform = CGAffineTransformScale(imageView.transform, scale, scale);
recognizer.scale = 1.0;
}
But my twoFingerPinch method is not called. Anybody help me!! Thanks in advance.