Toggle radio button within a UITableViewCell
<p>I am taking the index of the selected cell to display a selected radio button image. It works just fine, but once I attempt to select a cell that contains the selected radio button it will not deselect with the unselected radio button image:</p>

<pre><code>if indexPath.row == self.selectedIndex {
     cell.button.setImage(UIImage(named: "radio_selected"), forState: UIControlState.Normal)
} else {
     cell.button.setImage(UIImage(named: "radio_unselected"), forState: UIControlState.Normal)
}
</code></pre>

<p>How could I revise this code so that I can toggle the image On/Off, on selection of the same cell?</p>