Open JeanetteMueller opened 11 years ago
same problem
Hello everyone, I hope this isn't too late but I came across this problem today and I found a fix.
It seems like the UIPanGestureRecognizer is stealing all the touches. We simply need to tell PaperFoldView to return YES in the recognize simulatenous gesture recognizer:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
return YES;
}
You would of course need to set the delegate of the pan gesture variable to self on line 68 of PaperFoldView class:
UIPanGestureRecognizer *panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(onContentViewPanned:)];
panGestureRecognizer.delegate = self;
And don't forget to conform to the UIGestureRecognizerDelegate protocol in the PaperFoldView header file:
@interface PaperFoldView : UIView <MultiFoldViewDelegate, UIGestureRecognizerDelegate>
Hope that helps :D
Hi, i want to use paperfold on a cell, but if i do so, i cant scroll the table. what's the best way to check draging and swiping?
my code: