【问题标题】:Scrolling Stopped with MMDrawer iOS Objective c使用 MMDrawer iOS 目标 c 停止滚动
【发布时间】:2016-12-28 10:41:41
【问题描述】:

我在我的 ViewController 上使用 UIScrollView 并且还使用了 MMDrawerController

实现方式如下:

UIStoryboard * storyboard=[UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController * leftVC=[storyboard instantiateViewControllerWithIdentifier:@"LeftSideDrawer"];
UIViewController * centerVC=[storyboard instantiateViewControllerWithIdentifier:@"ViewController"];
UINavigationController * leftNav=[[UINavigationController alloc]initWithRootViewController:leftVC];
UINavigationController * centerNav=[[UINavigationController alloc]initWithRootViewController:centerVC];
self.drawerController = [[MMDrawerController alloc]
                         initWithCenterViewController:centerNav
                         leftDrawerViewController:leftNav
                         rightDrawerViewController:nil];
CGFloat menuWidth = [UIScreen mainScreen].bounds.size.width * 0.8;
[self.drawerController setMaximumLeftDrawerWidth:menuWidth];
[self.drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
[self.drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
[self.window setRootViewController:self.drawerController];
[self.window makeKeyAndVisible];

我在 ViewController 上实现 UIScrollView,有时滚动视图停止并且 MMDrawer 是打开的。如何使用 UIScrollView 处理 MMDrawer 打开/关闭。 当我试图滚动滚动视图项目时,滚动停止并打开菜单。 有什么帮助吗??

【问题讨论】:

    标签: ios objective-c uiscrollview mmdrawercontroller


    【解决方案1】:

    我得到了解决方案。在我的代码中,我的 UIScrollView Frame 的内容大小存在问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-12-25
      • 1970-01-01
      • 2012-12-29
      • 1970-01-01
      • 1970-01-01
      • 2012-06-21
      • 1970-01-01
      相关资源
      最近更新 更多