title: Can I use custom values of UIControlState for my own control?
body: <p>Is there a way to set a custom states -- not one of the existing <code>UIControlState</code> values -- for a <code>UIControl</code>?</p>
  
  <p>In the <code>UIControlSate</code> enum, there are 16 bits that can be used for custom control states:</p>
  
  <pre><code>UIControlStateApplication  = 0x00FF0000,              // additional flags available for application use
  </code></pre>
  
  <p>The problem is that <code>UIControl</code>'s <code>state</code> property is <em>readonly</em>.</p>
  
  <p>I want to set different background images to my <code>UIButton</code> for custom states.</p>