Skip to main content

cell.selectionStyle = UITableViewCellSelectionStyleNone;

cell.selectionStyle = UITableViewCellSelectionStyleNone; 

or [cell setSelectionStyle:UITableViewCellSelectionStyleNone];[cell setSelectionStyle:UITableViewCellSelectionStyleNone];

Further, make sure you either don't implement -tableView:didSelectRowAtIndexPath:-tableView:didSelectRowAtIndexPath: in your table view delegatetable view delegate or explicitly exclude the cells you want to have no action if you do implement it.

cell.selectionStyle = UITableViewCellSelectionStyleNone;

or [cell setSelectionStyle:UITableViewCellSelectionStyleNone];

Further, make sure you either don't implement -tableView:didSelectRowAtIndexPath: in your table view delegate or explicitly exclude the cells you want to have no action if you do implement it.

cell.selectionStyle = UITableViewCellSelectionStyleNone; 

or [cell setSelectionStyle:UITableViewCellSelectionStyleNone];

Further, make sure you either don't implement -tableView:didSelectRowAtIndexPath: in your table view delegate or explicitly exclude the cells you want to have no action if you do implement it.

Source Link
Irfan
  • 4.3k
  • 6
  • 31
  • 46

cell.selectionStyle = UITableViewCellSelectionStyleNone;

or [cell setSelectionStyle:UITableViewCellSelectionStyleNone];

Further, make sure you either don't implement -tableView:didSelectRowAtIndexPath: in your table view delegate or explicitly exclude the cells you want to have no action if you do implement it.