UIImageView Gestures (Zoom, Rotate) Question

Hope this can be helpful to you, that’s how I usually implement gesture recognizers: UIRotationGestureRecognizer *rotationGesture = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(rotatePiece:)]; [piece addGestureRecognizer:rotationGesture]; [rotationGesture release]; UIPinchGestureRecognizer *pinchGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(scalePiece:)]; [pinchGesture setDelegate:self]; [piece addGestureRecognizer:pinchGesture]; [pinchGesture release]; Rotate method: Reset the gesture recognizer’s rotation to 0 after applying so the next callback is a … Read more

Observing pinch multi-touch gestures in a UITableView

This seems to be a classic problem. In my case I wanted to intercept some events over a UIWebView which can’t be subclassed, etc etc. I’ve found that the best way to do it is to intercept the events using the UIWindow: EventInterceptWindow.h @protocol EventInterceptWindowDelegate – (BOOL)interceptEvent:(UIEvent *)event; // return YES if event handled @end … Read more