How to display viewcontroller without navigation bar
New Issue Checklist
I have read the guidelines for contributing and I understand:
- [x] My issue is happening in the latest version of SideMenu.
- [x] My issue was not solved in the README.
- [x] My issue can not be answered on stackoverflow.com.
- [x] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
- [] My issue is reproducible in the demo project.
Issue Description
Here is my screenshot of my application http://imgur.com/a/8FayM It shows navigation bar not like your example.
I just want to remove navigation bar. Is there a way to achieve that?
Thank you
This is a question for stackoverflow.com.
Was this asked on StackOverflow? Can the OP post the link to StackOverflow?
Ah sorry. The answer to this question is
viewController.setNavigationBarHidden(true, animated: false)
Hello : here is my code :
let menuLeftNavigationController = UISideMenuNavigationController(rootViewController: slideViewController)
menuLeftNavigationController.navigationController?.setNavigationBarHidden(true, animated: false)
SideMenuManager.default.menuLeftNavigationController = menuLeftNavigationController
SideMenuManager.default.menuPresentMode = .menuSlideIn
but the navigation bar still shows up.
Any ideas for what it is not hiding ?
Thanks
ok I did it that way :
menuLeftNavigationController.navigationBar.isHidden = true