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:,
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
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
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
Which constructor are you using?
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html
-
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
-
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
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:),