Stubborn UIButton
- by Mike
I have a UIButton that is supposed to be disabled during certain phases. So, when this happens I do
[myButton setEnabled:NO];
This is perfect because the button stays grayed and if clicked will not trigger its action, but...
when the button is clicked even grayed, it enables again and a second click will trigger its actions (???????!!!!!!!!!!).
How can that be? If the button is disabled it is supposed to be "part of the background", i.e., an image without any action.
I have tried to make the button vanish using alpha but even if you click on the empty spot, it reappears after the first click and then can trigger actions after the second click... (????)
Am I missing something?