title: iOS - Subclassing UIControl to make a custom switch - how to detect on/off?
body: <p>I'm using this class to make a custom switch: <a href="https://github.com/robertchin/rcswitch" rel="nofollow">https://github.com/robertchin/rcswitch</a></p>
  
  <p>It subclasses UIControl. I can switch it on and off, but how do I detect this in the code? UISwitch has a .on property that I can check when the value changes, but UIControl doesn't have that.</p>