SideMenu icon indicating copy to clipboard operation
SideMenu copied to clipboard

How to display viewcontroller without navigation bar

Open nonesc opened this issue 9 years ago • 5 comments

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

nonesc avatar May 23 '17 05:05 nonesc

This is a question for stackoverflow.com.

jonkykong avatar May 23 '17 05:05 jonkykong

Was this asked on StackOverflow? Can the OP post the link to StackOverflow?

tjb avatar Oct 02 '17 03:10 tjb

Ah sorry. The answer to this question is viewController.setNavigationBarHidden(true, animated: false)

tjb avatar Oct 02 '17 03:10 tjb

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

gregoireLem avatar Jan 11 '18 10:01 gregoireLem

ok I did it that way : menuLeftNavigationController.navigationBar.isHidden = true

gregoireLem avatar Jan 11 '18 10:01 gregoireLem