From 8c73a4f8cd9895535e711c53502065ee4fc88af2 Mon Sep 17 00:00:00 2001 From: Wojciech Nagrodzki <278594+wnagrodzki@users.noreply.github.com> Date: Wed, 16 Oct 2013 10:13:10 +0200 Subject: [PATCH] Call super implementation for reset method. Change reference view to window. --- .../NGRotationGestureRecognizer/NGRotationGestureRecognizer.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OneFingerRotation/NGRotationGestureRecognizer/NGRotationGestureRecognizer.m b/OneFingerRotation/NGRotationGestureRecognizer/NGRotationGestureRecognizer.m index 38bca49..cd844ec 100644 --- a/OneFingerRotation/NGRotationGestureRecognizer/NGRotationGestureRecognizer.m +++ b/OneFingerRotation/NGRotationGestureRecognizer/NGRotationGestureRecognizer.m @@ -57,6 +57,7 @@ CGPoint CGRectGetMidPoint(CGRect rect) - (void)reset { + [super reset]; self.trackedTouch = nil; } @@ -142,7 +143,7 @@ CGPoint CGRectGetMidPoint(CGRect rect) - (UIView *)referenceView { - return self.view.superview; + return self.view.window; } - (float)angleForVectorWithStartPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint