Why does my Navigation Bar disappear in Xcode? - ios

I have a navigation bar on my Table View Controller. When I run the simulator and navigate from the menu via UIButton, the navigation bar appears on the controller. However when I navigate to another page using a navigation bar, then return to the Table View, the navigation bar disappears.
I provided a screen shot of my main storyboard.
The main storyboard from my Xcode project

You should create your segue to the navigation Controller, not to the tablet, that way, you will have your bar.

Related

How to present another view controller under tab bar on button press inside a tab bar controller view?

I have 4 tabs and in the home tab, I have a button to goto profile view controller.
When I use segue, The view changes completely and it's presented over tab bar. So it gets hidden.
I want to present it under the tab bar so that I can quickly navigate to other tabs without a back button.
I am not sure if this is the right way or not. but you can add presenting viewcontroller's view as subview with the same animation.

black screen appears in the tab bar after navigation controller

if I press the third tab bar (tab bar index : 2), and it opens RequestVC, it will show a black screen like the picture below, so I can't see my label. and I don't know why the green icon in the bottom dissapears
I don't understand why this happens. I just uncheck "transculent" in the navigation bar, and in the NewRequestVC I also check "Hide Bottom bar on Push"
I recreate your storyboard, it's working fine for me.
Try these steps:
delete your navigation controller
embed your request VC in navigation controller
connect your main tab bar to navigation controller relationship segue as view controllers.
Try you restart Xcode?
If there is nothing wrong in storyboard then probably in your code.

iOS TvOS Tab Bar with Navigation Controller

I am working on an Apple Tv app which main screen is a tab bar. In the first tab I have a UINavigationController which view controller has a collection view. When select a cell in the collection view I launch a show segue to another view controller but the navigation bar isn't shown. I've checked that the "Shows navigation bar" is selected in the navigation controller... It is not possible to have a navigation controller inside a tab bar controller in an Apple Tv App?
Ok, the answer is easy, there is no "navigation bar" as such... due to the "back" button in a navigation controller is the "Menu" button in the remote, so there is no need to show the navigation bar with the back button

Why doesn't my Tab Bar show up in the simulator?

I have a tab bar controller that controls 4 view controllers. When I run the simulator, the tab bar doesn't show up. I created the tab bar controller in a single page application by dragging it from the object library, then creating segues with ctrl-drag for views that had already been created.
I do not have a navigation controller.
The problem was that I did not have the Tab Bar Controller selected as Is Initial View Controller in the Attributes Selector. After checking this box, the tab bar showed up at the bottom of the simulator.

tab bar goes when going between views

I am developing a tabbed bar application using storyboards.
I am attempting to put in a back button one a view - but when I press to go back (from one view to another) the tab bar vanishes.
How can I ensure the tab bar stays there?
Just make sure you're adding the UITabBar to the main Navigation Controller or View Controller of Navigation Hierarchy.
You need to select Tab Bar on the Navigation Controller Bottom Bar under the Attributes Inspector, then set the bottom bar to Inferred for the rest of your pages (or Tab Bar if you want it to be different on any pages)

Resources