Open ylrs opened 7 years ago
请问解决了吗?
我也是遇到这个问题
没有解决
在自定义的tableview(主界面容器)中添加手势判断:
(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer )gestureRecognizer { if ([gestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]]) { // 禁止左右滑动 UIPanGestureRecognizer pan = (UIPanGestureRecognizer *)gestureRecognizer; if ([pan translationInView:self].x > 0.0f || [pan translationInView:self].x < 0.0f) { return NO; } }
return [super gestureRecognizerShouldBegin:gestureRecognizer]; }
@yaoyunheng 具体怎么加的啊,我试了几个地方没什么作用啊
我也是遇到这个优化问题