Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to close programatically? #31

Closed
allaire opened this issue Dec 15, 2015 · 4 comments
Closed

How to close programatically? #31

allaire opened this issue Dec 15, 2015 · 4 comments

Comments

@allaire
Copy link

allaire commented Dec 15, 2015

@PhamBaTho Is there a way to close the menu programatically? When I press my rightBarButtonItem with the menu opens, it remains open, I would like to close it in my Action.

Thanks!

@Spr-Luis
Copy link

@allaire
Inside BTNavigationDropdownMenu.swift, I was added a word "public" before hideMenu method, and in your class you should make an instance of BTNavigationDropdownMenu and call hideMenu().

    public func hideMenu() {...}

In my case I made this:

override func viewWillDisappear(animated: Bool) {
        super.viewWillAppear(true)
        menuView.hideMenu()
    }

:)

@allaire
Copy link
Author

allaire commented Dec 28, 2015

@PhamBaTho Thoughts on making hideMenu public?

@PhamBaTho
Copy link
Owner

@allaire @Spr-Luis: I made showMenu() and hideMenu() functions public in this release (0.2.1). From now on, you can access to hide menu manually by using menuView.hide(). Thanks!

@allaire
Copy link
Author

allaire commented Jan 13, 2016

@PhamBaTho Thanks so much, keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants