How to display the same navigation bar in many views?

I can reproduce the following navigation bar for one view:

enter image description here

However, as soon as I move to the next view after clicking the button, I will lose the two upper icons on the right (search, profile). I understand that setting up a navigation item from a storyboard is usually done for each view. I can replicate these elements for each view, but I was wondering if there is a better way to do this once.

Is there a tutorial that explains how to maintain a custom navigation bar in many views?

+2
source share
1 answer

You need to customize it for each view. You should probably create a superclass and implement it there, so you only need to write the code once.

+3
source

All Articles