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

  • Home
  • SEARCH
  • 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 8049087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:41:06+00:00 2026-06-05T06:41:06+00:00

I set up my app using a storyboard and have my main view controller

  • 0

I set up my app using a storyboard and have my main view controller embedded in a UINavigationControler. To change the title that appears in the navigation bar, in the viewDidLoad method of my main view controller, I have self.navigationItem.title = @"My Title"; But the title never gets set.

My guess is that I need to set up a Reference Outlet in my storyboard, but I’m not sure what needs to be connected to what. Any ideas?

  • 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-05T06:41:08+00:00Added an answer on June 5, 2026 at 6:41 am

    in story board, it doesn’t get automatically connected , make a UINavigationItem using the following code in ur .h file

    @property(weak, nonatomic) IBOutlet UINavigationItem *navBar;
    

    in .m file synthesize the property and set the title like this

    @synthesize navBar;
    -(void)viewWillAppear:(BOOL)animated {
    [self.navBar setTitle:@"Sign In"];
    [self.navigationController setNavigationBarHidden:NO animated:animated];
    }
    

    Also, don’t forget to connect the UINavigationItem “navBar” in the storyBoard with ur class so that storyboard knows whose title to change. In case u don’t have a UINavigationItem in ur storyboard,add it outside the UIView and then connect it properly

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

Sidebar

Related Questions

I have a storyboard based app with a navigation controller as the initial view
I have a basic app set up using Backbone.js and Tornado Web. When I
I have an app using ListView not unlike Explorer does, but when I set
My app is using Storyboards. I want to post the hierarchy here: view Controller
I am developing app using the jquerymobile framework. I have to set the background
I have a small app set up using Sring MVC and Sitemesh. When i
I have inherited an app set up using built using rails using the facebooker
I have tried to set up a separate section of my app using a
I have created an Android app using the standard controls available. It seems that
In my ASP.net MVC App (using Razor views) I have a ProductDetails view. This

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.