Stubborn UIButton

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-04-12T08:16:55Z Indexed on 2010/04/12 8:23 UTC
Read the original article Hit count: 211

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk