Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/98.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 滑动删除在TableVIewCell上不起作用?_Ios_Objective C_Tableview_Tableviewcell - Fatal编程技术网

Ios 滑动删除在TableVIewCell上不起作用?

Ios 滑动删除在TableVIewCell上不起作用?,ios,objective-c,tableview,tableviewcell,Ios,Objective C,Tableview,Tableviewcell,我在我的项目中使用了侧菜单。 它使用PanGesture,这与TableViewCell 我还尝试使用它的属性禁用它的PangGusture self.frostedViewController.panGestureEnabled=NO; 但仍然面临同样的问题 其中REFrostedViewController扩展了UIViewController类 我的问题是 是否仍有禁用超级类手势的方法?最有可能的是REFrostedViewController侧菜单截取并阻止手势 在视图控制器中实现以下

我在我的项目中使用了侧菜单。 它使用PanGesture,这与
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的属性