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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:37:50+00:00 2026-06-13T14:37:50+00:00

I know how to change the UINavigationBar’s title font properties by using this code:

  • 0

I know how to change the UINavigationBar’s title font properties by using this code:

[self.navigationController.navigationBar setTitleTextAttributes:
 [NSDictionary dictionaryWithObjectsAndKeys:
  [UIFont boldSystemFontOfSize:16.0f], UITextAttributeFont, nil]];

However, I am finding that when I change the font size in this way it effects all views, not just the view in which I am implementing the above code. The problem is, I want to change the size for just 2 views that have long titles. The other views (including the root view) I wish to retain the default setting for font size. I’ve tried changing the font size back to normal in the viewDidLoad method using the above code, but it does not work.

Is there a way to change the title font size for just certain views? Thanks.

  • 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-13T14:37:51+00:00Added an answer on June 13, 2026 at 2:37 pm

    You should call that code in each view controller’s viewWillAppear: method. When you set it in viewDidLoad, the setting gets overridden by the next view controller’s actions. You might also have to call setNeedsDisplay on the navigationBar to refresh it (although I don’t believe so).

    Like so:

    - (void)viewWillAppear:(BOOL)animated
    {
         [super viewWillAppear:animated];
         [self.navigationController.navigationBar setTitleTextAttributes:
              [NSDictionary dictionaryWithObjectsAndKeys:
                  [UIFont boldSystemFontOfSize:16.0f],
                  UITextAttributeFont,
                  nil]];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code can change color of a UINavigationBar everywhere within the application. However, I
I know I how to change the font of a JRadioButton using UIManager and
I know I can change activity transition using the following code right after startActivity()
I add UINavigationBar via Library to view.But I don't know how to change this
I know how to change the font of Java editor in Eclipse in menu
I know you previously change the font size of a cell like so: cell.font
Does anybody know how to change the font of tooltip for ui elements?
All is in the title. I want to change the title of my UINavigationBar
The part I don't understand in the code below is function(serialized). I know change
Anybody know how to change the tab bar like 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.