• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't keep disabled UIBarButtonItem text white
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't keep disabled UIBarButtonItem text white


  • Subject: Re: Can't keep disabled UIBarButtonItem text white
  • From: Rick Mann <email@hidden>
  • Date: Wed, 10 Jul 2013 16:10:19 -0700

On Jul 10, 2013, at 16:07 , Rick Aurbach <email@hidden> wrote:

> Well, since a UIBarButtonItem is a UIBarItem, you might try explicitly using the UIBarItem method setTitleTextAttributes:forState:, specifying the disabled state. (You'll need to do this in code (such as viewWillAppear:), since IB doesn't disclose the information. I'm guessing here, but my guess is that grayed text is the default text attribute for the disabled state, unless explicitly overwritten.

Sorry if I wasn't clear in the original post. This is exactly what I do, and has served me well, until I started removing and re-adding the items to the toolbar so that I could hide them when not applicable.

--
Rick




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Can't keep disabled UIBarButtonItem text white
      • From: Rick Aurbach <email@hidden>
References: 
 >Re: Can't keep disabled UIBarButtonItem text white (From: Rick Aurbach <email@hidden>)
 >Re: Can't keep disabled UIBarButtonItem text white (From: Rick Mann <email@hidden>)
 >Re: Can't keep disabled UIBarButtonItem text white (From: Luther Baker <email@hidden>)
 >Re: Can't keep disabled UIBarButtonItem text white (From: Rick Mann <email@hidden>)
 >Re: Can't keep disabled UIBarButtonItem text white (From: Rick Aurbach <email@hidden>)

  • Prev by Date: Re: Can't keep disabled UIBarButtonItem text white
  • Next by Date: [MEET] CocoaHeadsNYC this Thursday
  • Previous by thread: Re: Can't keep disabled UIBarButtonItem text white
  • Next by thread: Re: Can't keep disabled UIBarButtonItem text white
  • Index(es):
    • Date
    • Thread