views:

127

answers:

1

Hi, In UIControlSate enum, there is 16 bits that can be used for custom control states. The problem is that UIControlState of a control is readonly. Is there a way to set the state of UIControl indirectly? I need this information, because I want to set different background images to my UIButton for custom states...

Thanks for help

A: 

You can manually set the enabled, selected or highlighted properties of the control to flip between four background images for a button. The other two states are essentially reserved for internal use.

Alex Reynolds
I don't understand only the last flag is documented as for internal use!
Meir Assayag
I'm with Meir on this one. It defines UIControlStateApplication as "Additional control-state flags available for application use". It just doesn't tell you how to use them.
Clay Bridges