iOS-Slide-Menu icon indicating copy to clipboard operation
iOS-Slide-Menu copied to clipboard

ios 8 user interaction disabled

Open jeffreysmobile opened this issue 10 years ago • 8 comments

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 ?

jeffreysmobile avatar Apr 24 '15 15:04 jeffreysmobile

Is this happening on the sample project on Github? Running that on iOS8 work fine for me

aryaxt avatar Apr 24 '15 16:04 aryaxt

I installed the library using cocoapods.

jeffreysmobile avatar Apr 24 '15 17:04 jeffreysmobile

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 ?

jeffreysmobile avatar Apr 27 '15 09:04 jeffreysmobile

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.

Fontinhas avatar Apr 28 '15 11:04 Fontinhas

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 avatar May 20 '15 19:05 nando0208

@nando0208 Thanks for the info. Will add this logic to the next version

aryaxt avatar May 20 '15 22:05 aryaxt

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.

johnnypayso avatar Jun 22 '15 08:06 johnnypayso

Fernandin aka @nando0208 is the guy! :dancer: Muleque bão

gabrielribeiro avatar Aug 07 '15 14:08 gabrielribeiro