Reputation: 1894
I have a storyboard that looks like this:
Structure:
UINavigationController -> UIViewController
UITabBarController |
UINavigationController -> UIViewController
I would like to apply the same navigation bar for both of the child view controllers of the UITabBarController
.
I read on multiple pages in the internet that Apple strictly recommends not to embed a UITabBarController
directly within a UINavigationController
.
However, I have no idea how to get the same status bar for all of the underlaying controllers (I want all buttons to work the same on all controllers).
As said in the comments, I want both UINavigationControllers
to look the same, I want them to navigate through the same controllers and I want to add custom buttons that function the same in every UINavigationController
.
Upvotes: 1
Views: 1390
Reputation: 4849
Here is a good example of what you wat
basically you can use
UINavigationBar.appearance()
To have the same UI for your navigation bar (or other elements) throughout the aplicaiton.
Upvotes: 0