Re: Can't keep disabled UIBarButtonItem text white

2013-07-11 Thread Rick Aurbach
Hmmm. Okay, thinking out loud here. I presume that the only significant difference between implementing these UIBarButtonItems initially and the remove/re-add sequences is that the view is already visible when you re-add them. (I.e., if you setTitleTextAttributes:forState: in viewWillAppear:,

Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
I have some UIBarButtonItems in a toolbar showing some app status. They're disabled, because there's no action if you tap, but I want them to appear white, so I set the disabled color to white. One of these, and some other image items (that are also disabled) are hidden and shown depending on

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Aurbach
Rick, I haven't tried this, so I don't know whether it will work, but… have you tried leaving the buttons enabled but disabling user interaction for them? Of course, if that works then it leaves open the larger question of whether your UI goals are best served by displaying buttons that can't

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 08:28 , Rick Aurbach r...@aurbach.com wrote: I haven't tried this, so I don't know whether it will work, but… have you tried leaving the buttons enabled but disabling user interaction for them? Of course, if that works then it leaves open the larger question of

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Luther Baker
Which constructor are you using? http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html -

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
I'm building it in IB. On Jul 10, 2013, at 15:46 , Luther Baker lutherba...@gmail.com wrote: Which constructor are you using? http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html -

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Aurbach
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

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 16:07 , Rick Aurbach r...@aurbach.com 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:),