没有触发UISplitViewController手势的SWRevealViewController

时间:2015-02-03 06:49:54

标签: ios objective-c

在我的应用中,我使用SWRevealViewControllerUISplitViewController。 那么发生了什么: (我现在有3 UIViewController:右侧的菜单,主列表和详细视图)mainList向右移动,显示菜单并覆盖详细视图(一点)。现在,当我想通过触摸(拖动)主列表关闭菜单时,menuList的一半区域不可触摸,触摸被重定向到detailView(位于mainList下)。 请帮助我,我是iOS

的新手

我会展示一些sceenshots,但系统不允许我...抱歉

1 个答案:

答案 0 :(得分:0)

在mainListViewController中

#import "SWRevealViewController.h"并将其添加到viewDidLoad

[self.view addGestureRecognizer:self.revealViewController.panGestureRecognizer];
[self.view addGestureRecognizer:self.revealViewController.tapGestureRecognizer];