Removing blanks doesn't work on TableVIewCell?

I used the REFrostedViewController side menu in my project. it uses PanGesture, which conflict with the swipe gesture on TableViewCell I also tried to disable its PangGusture using its property

 self.frostedViewController.panGestureEnabled=NO; 

but still facing the same problem.

Where is the REFrostedViewController extension of the UIViewController class

My question

Is there a way to disable the superclass gesture?

+5
source share
1 answer

Most likely, the side menu of the REFrostedViewController intercepts and blocks gestures.

Add the following category to the view controller. This should solve the problem.

 @interface UIView (CellSwipeAdditions) - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer; @end @implementation UIView (CellSwipeAdditions) - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { return YES; } 
0
source

Source: https://habr.com/ru/post/1269284/


All Articles