Nav bar disappears when navigating to a specific view

add custom view to navigation bar ios swift
ios navigation bar tutorial
ios bottom navigation bar tutorial
custom navigation bar swift
app navigation bar
uinavigationbar
uinavigationitem
navigation bar android

I have a UINavigationController and I push and pop views, but in some views, I want to go to specific view from the stack so I use this code. It works but the nav bar disappears.

for controller in self.navigationController!.viewControllers as Array {
        if controller.isKind(of: HomeViewController.self) {
        self.navigationController!.popToViewController(controller, animated: true)
            break
        }
    }

In your HomeViewController you could try the following:

    override func viewWillAppear(_ animated: Bool) {
       super.viewWillAppear(animated)
       self.navigationController?.setNavigationBarHidden(false, animated: animated)
   }

iOS 10 Beta makes navigation bar buttons and title disappear on , However on iOS 10 (tested on device iPhone 6s with latest beta), when the cell on the master view controller is selected and the detail view is "pushed", my  As for why your nav bar disappeared when you popped to the HomeVC I should check your code to answer. Most common (at least in my projects) is that the preceding VC in the view hierarchy had it's nav bar hidden. – lajosdeme Feb 5 '19 at 11:52


You can programmatically show the Navigation Bar as mentioned in Idem's comment, or if you are using XCode interface builder you may also want to ensure that the Status Bar is properly defined for each View in the Simulated Metrics area of the properties for the View - this works for non-Storyboard layouts. Simulated Metrics Section of properties in XCode Interface Builder

UINavigationBar, The default navigation item uses the view controller's title, but you can See Customizing the Appearance of a Navigation Bar for details on how to To use the custom shadow image, you need to have specified a custom background image. To get the navigation controls to display in an affected viewport: Double-click inside the viewport to activate it; Type navswheel and press ENTER; Click outside the viewport to deactivate it; Double-click again inside the viewport to activate it. The navigation controls should now display.


You can try to answer proposed by @ldem

However you can also try presenting the view rather than popping

so change

self.navigationController!.popToViewController(controller, animated: true)

to

self.present(controller, animated: true, completion: nil)

New Perspectives on the Internet: Introductory, Click Navigation Toolbar on the menu to remove the check mark and deselect this option. Click the Firefox button, point to Options, and then click Navigation Toolbar to display the toolbar. If the menu bar disappears, it was already displayed. To identify a particular Web page's exact location on the Internet, Web  The only way to make it visible is by setting View, Folder Pane to Normal. I tried both "outlook /resetnavpane" and "outlook /cleanviews" commands but those didn't work. If any switch could fix it, it would be /resetnavpane, as resetnavpane resets the navigation pane to Outlook's default.


New Perspectives on the Internet: Comprehensive, Click Navigation Toolbar on the menu to remove the check mark and deselect this option. Click the Firefox button, point to Options, and then click Navigation Toolbar to display the toolbar. If the menu bar disappears, it was already displayed. To identify a particular Web page's exact location on the Internet, Web  Icon Bar Menu Icon Accordion Tabs Vertical Tabs Tab Headers Full Page Tabs Hover Tabs Top Navigation Responsive Topnav Navbar with Icons Search Menu Search Bar Fixed Sidebar Side Navigation Responsive Sidebar Fullscreen Navigation Off-Canvas Menu Hover Sidenav Buttons Sidebar with Icons Horizontal Scroll Menu Vertical Menu Bottom Navigation


Dreamweaver CS5: The Missing Manual, Click the Live View button at the top of the document window or choose View➝​Live View. A Spry menu might look like a fancy navigation bar made up of colorful containing a nested list (a popup menu) to have a special CSS class applied  While working in AutoCAD, the view cube and/or the navigation bar intermittently disappear from the program or become grayed out and disabled. Do one or more of the following: On the command line in AutoCAD: Type CUBE and set it to On. Type NAVVCUBEDISPLAY and set the value to 3. Type NAVBAR and set it to On.


Dreamweaver CS4: The Missing Manual: The Missing Manual, Click the Live View button (or choose View ➝ Live View) a second time to leave a. Navigation. Bar. One of the exciting tools in Dreamweaver CS4 is the Spry  Navigation view. 05/02/2020; 31 minutes to read +12; In this article. The NavigationView control provides top-level navigation for your app. It adapts to a variety of screen sizes and supports both top and left navigation styles. Navigation view supports both top and left navigation pane or menu. Get the Windows UI Library