0

我已经MMDrawController在我的应用程序中配置了UITabBarControlleras initialviewcontroller

 self.drawerController = [[MMDrawerController alloc] initWithCenterViewController:self.rootTabBarController leftDrawerViewController:leftSideNavigationController];
   self.drawerController.openDrawerGestureModeMask = MMOpenDrawerGestureModePanningCenterView;
    self.drawerController.closeDrawerGestureModeMask = MMCloseDrawerGestureModePanningCenterView;

    [self.drawerController setGestureShouldRecognizeTouchBlock:^BOOL(MMDrawerController *drawerController, UIGestureRecognizer *gesture, UITouch *touch) {

        if ([gesture isKindOfClass:[UITapGestureRecognizer class]]) {
            return FALSE;
        }

        return !([touch.view isKindOfClass:[UISlider class]]) && !([touch.view isKindOfClass:[UIScrollView class]]) && !([touch.view isKindOfClass:[ADNetworkFeedDropdownView class]]) && [gesture isKindOfClass:[UIPanGestureRecognizer class]];

    }];

然而,其中一个视图控制器具有无限滚动视图,当我在该特定视图控制器的无限滚动视图上滑动时,我想禁用MMDrawViewController. 目前,如果我在滚动视图上滑动,左平移会打开。我试过了becomeFirstresponder,它不起作用。

4

0 回答 0