iOS-Slide-Menu
iOS-Slide-Menu copied to clipboard
ios 8 user interaction disabled
On ios 8 the left and right menus aren't tappable. I am using a tableview to display the menu items, and that works fine on 7.1 and lower, but on ios 8 didselectrow is not called. I tried addding a button to the left menu thinking there might be something wrong with the tableview, and it still won't take the touch.
Any fix ?
Is this happening on the sample project on Github? Running that on iOS8 work fine for me
I installed the library using cocoapods.
var streamViewC:StreamViewController = StreamViewController(nibName:"StreamViewController", bundle:nil) var slideNavC:SlideNavigationController = SlideNavigationController(rootViewController: streamViewC)
var leftMenu = LeftMenuViewController(nibName:"LeftMenuViewController", bundle: nil)
var rightMenu = RightMenuViewController(nibName:"RightMenuViewController", bundle: nil)
SlideNavigationController.sharedInstance().rightMenu = rightMenu
SlideNavigationController.sharedInstance().leftMenu = leftMenu
SlideNavigationController.sharedInstance().enableSwipeGesture = false
topNavC.presentViewController(slideNavC, animated: false, completion: nil)
This is how I use the sliding menu.
This is what LeftMenuViewController xib looks like: https://www.dropbox.com/s/5mbh1sg4ayll3y2/Screenshot%202015-04-27%2012.37.22.png?dl=0
Maybe this would be helpful ?
I'm having the exact same problem. Both with the version from Cocoapods and also if I point the pod source to this repo (https://github.com/aryaxt/iOS-Slide-Menu.git) the problem still persists.
This happens because your are not initializing the SlideNavigationController with the root view controller (you are probably doing it later).
Make sure the first view controller in your storyboard is the SlideNavigationController, or you can try to fix that changing that line of code (SlideNavigationController.m):
[self.view.window insertSubview:menuViewController.view atIndex:0];
to
[self.view.superview insertSubview:menuViewController.view atIndex:0];
@nando0208 Thanks for the info. Will add this logic to the next version
Please add 1.4.7 fix to your CocoaPod. I did a pod update, but it only got 1.4.6, and I burnt a bunch of time until I managed to find this thread.
Fernandin aka @nando0208 is the guy! :dancer: Muleque bão