How can I make it so that when I use my UIScrollView the pan gesture recognizer selector is not called.
I want to be able to scroll in the scroll view without the pan gesture selector being called.
Here is my pan detected function:
- (void)panDetected:(UIPanGestureRecognizer *)panRecognizer
{
CGPoint translation = [panRecognizer translationInView:self.view];
CGPoint imageViewPosition = self.draggableImage.center;
imageViewPosition.x += translation.x;
imageViewPosition.y += translation.y;
self.draggableImage.center = imageViewPosition;
[panRecognizer setTranslation:CGPointZero inView:self.view];
}
I do not want it to be called when I am using my UIScrollView at the bottom of the page.