title: Swift: How can I bind an NSIndexPath to a addTarget
body: <p>I have a <code>UISwitch</code> in each of my dynamically created rows of which I want to bind an NSIndexPath to an addTarget selector.</p>
  
  <p>I had considered allowing the user to tap the row to toggle the switch, but from a UX perspective it makes more sense to have the switch handle this method, therefore using <code>didSelectRowAtIndexPath</code> is not an appropriate solution.</p>
  
  <p>When my cell is created I currently bind a selector like this:</p>
  
  <pre><code>// Create listener for each switch
  prefCell.subscribed?.addTarget(self, 
                                 action: "switchFlipped:",
                                 forControlEvents: UIControlEvents.ValueChanged)
  </code></pre>
  
  <p>Which calls the corresponding method:</p>
  
  <pre><code>func switchFlipped(flipSwitch: UISwitch, indexPath: NSIndexPath) {}
  </code></pre>
  
  <p>Obviously this throws an error  because <code>NSIndexPath</code> isn't a valid reference, as I believe it will only send the buttons reference.  Is there any way I can bind the index path? If not, is there any way to get the current cell from the context of the <code>UISwitch</code>?</p>