title: How to call an action when UISwitch changes state?
body: <p>I want to perform some action when UISwitch changes its state, thus is set on or off. How do I do this? I need to pass two objects as parameters. </p>
  
  <p>It's created in code, thus not using xib.</p>