Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No "Disabled" State #19

Open
chrisballinger opened this issue May 15, 2013 · 1 comment
Open

No "Disabled" State #19

chrisballinger opened this issue May 15, 2013 · 1 comment

Comments

@chrisballinger
Copy link

When I set .enabled = NO on a BButton, it no longer accepts touch events but it isn't obvious to the user that the button is disabled. I was imagining slightly greying out the current button color, similar to other controls.

Is this a bug or do we need to write it?

@chriswill0w
Copy link

Try this:
self.someButton.enabled = NO;
self.someButton.userInteractionEnabled = NO;
self.someButton.titleLabel.enabled = NO;

Disabled state of button should now also be visible to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants