iOS MMDrawerController侧滑菜单与中心视图手势冲突问题的解决方案

来源:互联网 发布:手机淘宝账号注册步骤 编辑:程序博客网 时间:2024/06/06 00:40


在MMDrawerController.m中找到这个方法对应修改便是

-(BOOL)isPointContainedWithinCenterViewContentRect:(CGPoint)point{

//    CGRect centerViewContentRect = self.centerContainerView.frame;

    CGRect centerViewContentRect = CGRectMake(0, 0, 50, self.centerContainerView.frame.size.height);

    centerViewContentRect = CGRectIntersection(centerViewContentRect,self.childControllerContainerView.bounds);

    return (CGRectContainsPoint(centerViewContentRect, point) &&

            [self isPointContainedWithinNavigationRect:point] == NO);

}


0 0
原创粉丝点击