title: Set custom class of UIView programmatically?
body: <p>I am adding a UIView programmatically to superview, and i would like to add a target to the UIView to be able to perform any actions on touch. In order to add a target i need to set the custom class of the UIView to UIControl. Normally thats done in IB, but since im doing it programmatically i can't set it up that way. I tried to set UIControl like this, but its not working.</p>
  
  <pre><code>subView.class = UIControl;
  </code></pre>
  
  <p>Whats the proper way of doing that?</p>