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