简体   繁体   中英

SWRevealViewController with UISplitViewController gesture not triggered

In my application I use SWRevealViewController and UISplitViewController . So what is happening: (I have now 3 UIViewController : menu, mainList and detail view on the right side) The mainList moves to the right showing the menu and overlaying the detail view(a bit). Now when I want to close the menu by touching (dragging) the mainList, half of the area of menuList is not touchable, the touches are redirected to detailView (which is under the mainList). Please help me, i'm a newbie in iOS

I would show some sceenshots, but the system doesn't allow me...sorry

#import "SWRevealViewController.h" in your mainListViewController and add this in your viewDidLoad .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM