Closed KevinVR closed 10 years ago
Hi !
When I have a scroll view like your map view as a subview, I don't expect the users to pan to open the menu. Instead I put a button in the navigation bar to open the menu.
You could recognize the pan of the map AND the pan of the menu simultaneously but it will lead to bad user experience.
You could also set the menu's pan gesture on another view (like the nav bar) but it will require you making the pan gesture public in NVSlideMenuController.h
Thanks a lot for the fast answer! I just thought about putting a navigation bar too last night! That's the best solution.
I've got one more question: is there a way to make iOS use the slide menu on every UIViewController? I put it in the AppDelegate, but it seems like I need to change my calls to open new views in the other viewcontrollers too.
I've got one more question: is there a way to make iOS use the slide menu on every UIViewController? I put it in the AppDelegate, but it seems like I need to change my calls to open new views in the other viewcontrollers too.
No there is no way. You should manually set the contentViewController
each time or keep a reference to the "right" navigation controller if any.
I tried putting it on a simple view, everything works perfectly (very cool btw!).
Then the next step was putting this in a GMSMapView. Instead of opening the menu, it moves the map (so I guess the MapView is overriding the swipe/slide event and using it to move the map).
Do you have any ideas how I could fix this? I'm under a tight deadline and any help would be strongly appreciated.
Or maybe, you have a better suggestion to use another style of menu instead of a slide menu?
Thanks!
Kind regards,
Kevin