Ios 滑动删除在TableVIewCell上不起作用?
我在我的项目中使用了侧菜单。 它使用PanGesture,这与Ios 滑动删除在TableVIewCell上不起作用?,ios,objective-c,tableview,tableviewcell,Ios,Objective C,Tableview,Tableviewcell,我在我的项目中使用了侧菜单。 它使用PanGesture,这与TableViewCell 我还尝试使用它的属性禁用它的PangGusture self.frostedViewController.panGestureEnabled=NO; 但仍然面临同样的问题 其中REFrostedViewController扩展了UIViewController类 我的问题是 是否仍有禁用超级类手势的方法?最有可能的是REFrostedViewController侧菜单截取并阻止手势 在视图控制器中实现以下
TableViewCell
我还尝试使用它的属性禁用它的PangGusture
self.frostedViewController.panGestureEnabled=NO;
但仍然面临同样的问题
其中REFrostedViewController
扩展了UIViewController
类
我的问题是
是否仍有禁用超级类手势的方法?最有可能的是REFrostedViewController侧菜单截取并阻止手势 在视图控制器中实现以下类别。它应该能解决问题
@interface UIView (CellSwipeAdditions)
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
@end
@implementation UIView (CellSwipeAdditions)
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return YES;
}
我面临同样的问题:(尝试禁用forstedViewController.panGestureEnabled=false的属性