Changes in Nav Bar/Status Bar after Navigation Controller - ios

I'm just wondering could anyone tell me why the navigation bar and status bar in an app different after it has passed through a navigation controller?
The app I'm working on is a Tab Bar Controller app that has one section with a table view ('More' tab). This view controller that holds the table view is embedded in a navigation controller. The navigation bar and status bar reach further down the page in the 'More' tab and I feel it is something to do with the navigation controller.
I would love if all the tabs had a matching style for the navigation bar and status bar. Apologies if I am not describing this clearly, I can't post images yet as I am just starting out with development and SO.
I suppose I am asking:
How to change the appearance of status and navigation bar in a Navigation Controller?
Any help I get will be gratefully received. Thank you.

Here is the solution you search for:
Question 1:
How to change the appearance of status bar
Question 2:
How to change the appearance of navigation bar or this

Related

View controller problems with old navigation bar and tab bar controller

I have a view controller which was attached to a navigation controller at one point in time. it is still showing some ghost of the navigation bar? It is also showing the Tab Bar but there is not tab bar item shown on it?
any ideas how to fix this, or is it a delete and remake?
Its either the alpha of the rootVC or you have. tab bar controller on the second one. Check your identity inspector on both views

Swift unable to add tab bar to tab bar view controller? Grayed out?

Ok, my experience with tab bar controllers is limited but Ive never encountered this issue. I am able to create a tab bar controller but not add a tab bar or tab bar item tp it. I have followed this : https://makeapppie.com/2015/01/27/tab-bar-controllers-in-storyboards/ and others exactly and they just say to drag in the tab bar controller or embed another VC in it and boom - tab bar.
This is what has happened for me:
The tab bar is grayed out and Im not able to drag a tab bar onto the VC or anywhere. What am I doing wrong here? I need to migrate my standalone VCs into a tab bar controller.
make sure to your relationships between view controllers and view controller
this is my tabbarcontroller

iOS navigation bar with push without controller

I want to have 2 view controller with a navigation bar, but without the status bar.
How can I push these two controllers? Is it possible without the navigation controller?
Here is one example
There is no status bar but also with a back button.
Using a UINavigationController (giving you the navigation bar and the back button) is a completely separate task from whether the status bar shows or not.
So use a UINavigationController to properly and easily push and pop your view controllers as needed.
To hide the status bar, please see Hide Status Bar In iOS 8 app.

navigation bar states, showing and hiding the bottom nav bar

Keep in mind with the following question, I am still an iOS noob.
So I understand how to hide/show/recolor the navigation bar and whatnot. My next challenge is that some screens need the nav bar and others do not.
When my app starts off, I have the nav bar as hidden and then the user can click register or log in (both of which screens have a nav bar).
So those screens have the code to show the nav bar all while the first (welcome screen) has the code to hide the nav bar.
Here is the question: Why is it that when I first start my app, the nav bar is not there, but when I go to register/login and then hit the back button to return to the welcome page (initial page) then the nav bar is still there, even though my code to hide it is in the viewDidLoad method?
How can I fix this?
You can try moving the logic of hidding the Nav bar to the ViewWillAppear method, you just need to override it in your View Controller class.
Alternatively I would suggest to use a separate view controller to handle your login/registration screens and only use nav bars where you need them. You would have to create a view controller in your story board with your regular screens and embed the screens that need the tab bar in a navigation controller, You can then segue from your regular view controller into the navigation controller that includes your tabs.
Hope this helps

Weird nav controller behavior with different tab bar stacks

I have a tab bar controller with a nav bar embedded in each tab as root. I am using a detail view controller that will be accessed from 2 of these tab bar stacks. When accessing this view controller in it's own stack, everything works as expected. However, if the user is in the other tab and segues to this detail view controller, the view slips behind the navigation bar. Its like the nav bar isn't even there, it just goes underneath it. I've been scratching my head trying to figure out what's going on, any insights would be greatly appreciated!
Figured it out for those in a similar predicament. Need to add navigationController?.navigationBar.translucent = false in viewDidLoad. In iOS 7 this changed, by adding this line it won't slide the view beneath the nav bar.

Resources