Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8500271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:54:00+00:00 2026-06-11T00:54:00+00:00

this is probably quite simple.. but I don’t know what’s the best practice here.

  • 0

this is probably quite simple.. but I don’t know what’s the best practice here.

i have a tabbarcontroller with 4 tabs, 3 of them should be a UINavigationController, the other one should also have the UINavigationBar to it but should not be a nav controller itself.
Now i want to give the UINavigationBar a tint color and an action button. I’d like to do this in the interface builder.
The navBar should always be the same one and i only want to create it once.

But where exactly would i do it? Would i create a .xib file with only the UINavigationBar in it and somehow link to that?

I’m very confused here, most tutorials only discuss the navBar for ONE navController but in my case i need the same bar for different ViewControllers..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:54:02+00:00Added an answer on June 11, 2026 at 12:54 am

    NavBar comes with the navigationController or can come seperate. It is a subclass of UIView.

    You cannot simply share your navBar with all controllers and the non-navigationController. I mean one instance of a navbar. You cannot even set the navbar for a navigationController. It is only readable.

    In my understanding you are trying to make the navbar look the same in every controller, am I right?
    So you can for instance subclass a UINavigationController and set it up as you want in the init method and init this subclass to add it to the view.

    But what about the non-UINavigationController navBar?
    Well, that’s easy: Simply add your subclassed navigationController to that tab. You don’t have to use it as NavController. You simply can add views to his view as to a standard ViewController.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably quite simple, but I just don't know how to do this...
This is probably a really simple thing, but I don't know how to implement
This is probably a really simple question but one I've never quite worked out
I know this probably really simple but Im not sure what im doing wrong...
This is probably quite simple but I haven't yet been able to wrap my
Probably what I'm asking is quite simple but I don't seem to be getting
It is probably quite simple, but I do not how to do. I have
This is probably quite simple but I'm currently a git noob and haven't quite
This one should be simple, but I don't really know how to find a
This is probably something really simple, however I am quite new to PHP, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.