// if you want to use didselect or diddeselect than :
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if let cell = tableView.cellForRow(at: indexPath)as? tableViewCell{
cell.mRadioimage.image = UIImage(named: “radioCheckedImage”)
}
}
func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
if let cell = tableView.cellForRow(at: indexPath)as? tableViewCell{
cell.mRadioimage.image = UIImage(named: “radioUnCheckedImage”)
}
}
// don't forget to choose singleSelection
// hope its work for you
</code>