nverinaud / NVSlideMenuController

A slide menu done right for iOS.
MIT License
175 stars 33 forks source link

Does not work with Google Maps? #26

Closed KevinVR closed 10 years ago

KevinVR commented 10 years ago

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

nverinaud commented 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

KevinVR commented 10 years ago

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.

nverinaud commented 10 years ago

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.