2017-06-28 46 views
5

我在我的项目中使用了REFrostedViewController侧面菜单。 它采用PanGesture这对冲突TableViewCell 滑动手势我也试图禁止其使用PangGusture财产滑动删除不工作TableVIewCell?

self.frostedViewController.panGestureEnabled=NO; 

,但仍然面临着同样的问题。

REFrostedViewController extention UIViewController

我的问题是

反正有禁用超类的姿态?

+0

我m面临同样的问题:( –

+0

尝试禁用forstedViewController.panGestureEnabled的属性= false – KKRocks

回答

0

最有可能的REFrostedViewController侧面菜单拦截和阻止手势。

在视图控制器中实现以下类别。它应该解决问题。

@interface UIView (CellSwipeAdditions) 

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer; 

@end 

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