I have a scrollView and it has an imageview. When I disable the user interaction to zoom:
scrollView.gestureRecognizers = false;
And then I want to enable the interactions, the interactions do not work.
And with
scrollView.gestureRecognizers = true;
Is impossible, because this line returns an error.
I'm trying to add the gestures function again but it does not work..
UITapGestureRecognizer *doubleTapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(scrollViewDoubleTapped:)];
doubleTapRecognizer.numberOfTapsRequired = 2;
doubleTapRecognizer.numberOfTouchesRequired = 1;
[self.scrollView addGestureRecognizer:doubleTapRecognizer];
How can add the functions again??
Thanks!