How to invoke didselectrow func in tableview when uiswitch is pressed or its state is changed?

I have a little problem i am using custom tableview in it i have UISwitch when i click on it didselectrow function is not being called so what should i do to call it. i think the problem is when i click on it, cell is not being selected so how to overcome this problem ??
below is my Viewcontroller screenshot i want to add that cell data where switch is on but i don’t know how to do this help me ???

Its a default behaviour of iOS control and messaging system so if you need didSelctRow on switch click you need to disble UserInteraction on switch.