Reputation: 75
i used the custom table cell i have add UISwitch on cell but i want to disable clicking on hole cell, user only click on the Switch but not click on the cell of Table how it's possible ?
Upvotes: 0
Views: 412
Reputation: 12036
cell.selectionStyle = UITableViewCellSelectionStyleNone;
It will disable the selection. And ignore didSelectRowAtIndexPath
Upvotes: 1