infinitered / ProMotion-menu

RubyMotion gem allowing you to easily setup a facebook or Path style hidden slide menu easily with the ProMotion gem.
74 stars 29 forks source link

Tapping on current content screen doesn't close drawer #51

Closed jsierles closed 9 years ago

jsierles commented 9 years ago

Not sure if this is an issue or if there's a way to implement it. When tapping on the menu item corresponding to the existing content view, I'd expect the menu to close and return to where it was. Currently it just stays open. Thanks!

ryanlntn commented 9 years ago

You can achieve this by swapping out the center screen and hiding the menu.

app_delegate.menu.center = MyContentScreen
app_delegate.menu.hide
jsierles commented 9 years ago

Thanks - that worked! Would this be good to include as default behavior?

ryanlntn commented 9 years ago

@jsierles I suppose we could add it to the example in the README. We don't provide a menu screen in this gem, just the drawer controller than can hold up to three screens. Setting up actions is therefore left to the user.