ChavezChen / CWLateralSlide

One line of code to integrate 0 coupling side drawer!一行代码集成0耦合侧滑抽屉!
MIT License
1.28k stars 201 forks source link

求教 #76

Closed YuLuoLeiShi closed 6 years ago

YuLuoLeiShi commented 6 years ago

侧边栏那 presentViewController 一个控制 返回 先出现整个left控制器 然后才走 [self.view.superview sendSubviewToBack:self.view]; 才会正常显示 GIF图上传不了 已经加你QQ 求指教 还有就是 tableviewcell 侧滑删除收拾和左滑left冲突 按照你的注册侧边手势 YES 有的时候还是不能用 加了个判断可以了

-(BOOL)gestureRecognizer:(UIGestureRecognizer )gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer )otherGestureRecognizer {

if ([[self viewController:otherGestureRecognizer.view] isKindOfClass:[UITableViewController class]]) {
    return YES;
}
return gestureRecognizer.state != 0 ? YES : NO;

}