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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:49:48+00:00 2026-05-31T10:49:48+00:00

Because UILabel is not intended to be added to UIToolBar , I’ve gone down

  • 0

Because UILabel is not intended to be added to UIToolBar, I’ve gone down the path of creating a plain UIBarButtonItem and doing setEnabled:NO to prevent the “glow” effect from appearing when tapping it.

However, this grays out the title text, which is highly undesirable, so I thought it’d be nice to use a property like adjustsImageWhenDisabled:, but upon checking the UIBarButtonItem docs… no dice.

Any other ideas on how to disable the UIBarButtonItem without graying it out/altering its alpha?

  • 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-31T10:49:50+00:00Added an answer on May 31, 2026 at 10:49 am

    NEW ANSWER:

    This is copied from another answer (here):

    For those using Interface Builder to layout your toolbar, it is also possible to do this using Interface Builder alone.

    To add a label to a toolbar you need to add a generic UIView object to your Toolbar in IB by dragging a new UIView object over your UIToolbar. IB will automatically create a UIBarButtonItem that will be initialized with your custom UIView. Next add a UILabel to the UIView and edit the label graphically to match your preferred style. You can then visually set up your fixed and/or variable spacers as desired to position your label appropriately.

    You must also set the background of both the UILabel and the UIView to clearColor to get the toolbar to show through correctly under the label.

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

Sidebar

Related Questions

I have a custom UIButton with UILabel added as subview. Button perform given selector
Because regular expressions scare me, I'm trying to find a way to remove all
Because of the more tedious way of adding hosts to be monitored in Nagios
Because windows is case-insensitive and because SVN is case-sensitive and because VS2005 tends to
Because I run a blog aggregator website which checks a large list of RSS
Because Canvas3D doesn't have the ability to resize dynamically with the parent frame, I
Because I am a newbie I am trying to log out any errors that
Because the float data type in PHP is inaccurate, and a FLOAT in MySQL
Because I've made .cpp files and then transferred them into .h files, the only
Because I've overloaded the operator++ for an iterator class template<typename T> typename list<T>::iterator& list<T>::iterator::operator++()

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.