lundi 29 juin 2015

UIPanGestureRecognizer at view with UIScrollView


I have a view with UIPanGestureRecognizer.

UIPanGestureRecognizer *recognizer = [[UIPanGestureRecognizer alloc]
                                          initWithTarget:self action:@selector(handlePan:)];
    [recognizer setMaximumNumberOfTouches:1];
    [recognizer setDelegate:self];

[self.view addGestureRecognizer: recognizer];

=======
-(void) handlePan:(UIPanGestureRecognizer*)gestureRecognizer
{
  move subview of self.view
}

subview have a scroll view inside. how to capture gesture with event -handlePan: when scroll view is at the end of horizontal scrolling?

enter image description here


Aucun commentaire:

Enregistrer un commentaire