sai-info.iphone
sai-info.iphone

Reputation: 75

How i can disable TebleView Cell clicking by programing?

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

Answers (2)

anjum
anjum

Reputation: 556

you can use: cell.selectionStyle=UITableViewCellSelectionStyleNone;

Upvotes: 1

Alex Terente
Alex Terente

Reputation: 12036

 cell.selectionStyle = UITableViewCellSelectionStyleNone;

It will disable the selection. And ignore didSelectRowAtIndexPath

Upvotes: 1

Related Questions