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 6101707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:31:50+00:00 2026-05-23T13:31:50+00:00

There are times when I set things in Interface builder and they show up

  • 0

There are times when I set things in Interface builder and they show up as I expect in my app. Other times, they show up differently or not at all. And I can’t seem to get a good handle on why this is the case.

For example, I am presenting a Navigation Controller in a modal view. But in Interface Builder, when I try to set the title of the Navigation Bar, it gets ignored. I understand that the navigation bar title takes its name from the title of the view its displaying, so you actually need to set the title on that subview rather than on the navigation bar. That makes plenty of sense when considering code only, but the fact that IB allows you to seemingly set the title is very confusing. Why does it let you? Just so that it looks “right” in IB even if that doesn’t reflect the true state of the app?

A similar example is adding a UIBarButtonItem to the navigation bar. Again, in IB I can add it, set its title, style, etc. But it doesn’t show up. I have to set the .navigationItem.leftBarButtonItem property on the root view controller that the navigation controller is initialized with.

So as far as I can tell, neither of the two things above (title & button) are achievable through IB, yet IB sure makes it seem like they are. And in the end, this makes it meaningless to even have a XIB file for the Navigation Controller.

Am I missing something?

  • 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-05-23T13:31:51+00:00Added an answer on May 23, 2026 at 1:31 pm

    When a xib has “Navigation Bar” set as “Top Bar” under “Simulated Metrics”, the title can not be set, and buttons can not be added. Did you manually add a navigation bar to the xib? If you did, that’s why IB lets you set the title and add bar button items. You shouldn’t manually add navigation bars just because you expect one to be added by a navigation controller at some point. You should use the simulated metrics.

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

Sidebar

Related Questions

There are times when I want to use mootools for certain things and Prototype
I'm making a web app. In it there are times when a form may
There are numerous times you have an interface that accepts similar type arguments that
I want to show the status bar in my app in all views but
Is there a way to iterate over a Time range in Ruby, and set
What are the differences between #import and #include in Objective-C and are there times
There are times when I want to test new code from the forums or
In a recent discussion on ORMs for webapps someone mentioned that there are times
I was wondering if there are any times where it's advantageous to use an
I read a question earlier asking if there was a times method in Python,

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.