nverinaud / NVSlideMenuController

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

View Controller responding to touches when menu is open? #10

Closed mps closed 11 years ago

mps commented 11 years ago

@nverinaud is it possible to disable touches to the View Controller that is being presented when the Menu is also present? I do not want that View Controller to accept touch gestures if the menu is open.

Thanks!

nverinaud commented 11 years ago

Yes! Override -viewDidSlideOut:inSlideMenuController: in your content view controller and simply do self.view.userInteractionEnabled = NO;. Do not forget to enable user interaction back in -viewDidSlideIn:inSlideMenuController:.

mps commented 11 years ago

thanks @nverinaud