Re: Can't keep disabled UIBarButtonItem text white
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