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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:44:24+00:00 2026-05-27T11:44:24+00:00

I have called a the AppearanceWhenContainedIn method in my AppDelegate to set the the

  • 0

I have called a the “AppearanceWhenContainedIn” method in my AppDelegate to set the the title color of all of my buttons in Navigation Controller classes. The call is as follows:

    [[UIButton appearanceWhenContainedIn:[UINavigationController class],nil] setTitleColor
[UIColor colorWithRed:0 green:0.475 blue:0.227 alpha:1] forState:UIControlStateNormal];

This works the way I want it to, however, there is one UIView where I have a button in a toolbar that I want to keep the title text of the button white (not change the color). The button and toolbar were added in my .xib file and I have the button attached to an IBAction that dismisses the modal view controller (it’s an “About” view).

How would I change the text color of this specific button, or make an exception in my appearanceWhenContainedIn call?

Thank you very much for your help.

  • 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-27T11:44:25+00:00Added an answer on May 27, 2026 at 11:44 am

    I guess in my case, because the button was in a toolbar, I used a customizeAppearance method in my AppDelegate to change the appearance of all button items in toolbars. The code was:

    [[UIBarButtonItem appearance] setTitleTextAttributes:
         [NSDictionary dictionaryWithObjectsAndKeys:
          [UIColor whiteColor],
          UITextAttributeTextColor,
          [UIColor whiteColor],
          UITextAttributeTextShadowColor,
          [NSValue valueWithUIOffset:UIOffsetMake(0, 1)],
          UITextAttributeTextShadowOffset,
          [UIFont fontWithName:@"ArialMT" size:0.0],
          UITextAttributeFont,
          nil]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have called a view from another with Html.Action method. I want to call
Is there a convention for naming the private method that I have called _Add
In my Map application I have called web service method in ViewDidLoad method. Therefore
I have called a method using a secondary thread. From inside the method i
I have implemented a hashmap in a method (call it method a) and in
I have a .NET webmethod that I have called from jQuery. The method returns
If I have T1 T2 T3 all have called wait and are in the
In indexAction() method of IndexController I have called the method of model which returns
I have a Ajax Action link, which will call a action Method, In my
I have created a method called isInPoly that receives the x and y coordinates

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.