I have a custom pinch gesture recognizer that I am replacing UIScrollView's pinch gesture recognizer with. Let's assume I want this pinch gesture recognizer to behave exactly 100% like UIScrollView's pinch gesture recognizer. Could I set the gesture recognizer's selector somehow to effect this?
Like perhaps
GPinchGestureRecognizer *graphPinch = [[GPinchGestureRecognizer alloc] initWithTarget:scrollView action:@selector(pinchHandler:)];
Or something?
In reality I do want the recognizer to behave almost exactly like the one that comes with UIScrollView, except that in the views contained within the UIScrollView I override setTransform and I want to restrict transform alteration based on flags set in this custom pinch recognizer. Trying to reverse/guess-engineer everything higher up the call stack that UIScrollView's pinch gesture recognizer does has proven hard and annoying. I need my custom recognizer to do some arithmetic with the touches that sets some flags that are read in setTransform, but besides that I want completely standard UIScrollView pinch behavior.