G guydor macrumors member Original poster Mar 10, 2009 67 0 Feb 14, 2010 #1 Hi, I have an UITableView with 2 sections and 5 rows. In the first section I have 2 rows and in the second section I have 3 rows. I want to make the two rows in the first section that the user will NOT be able to tap on them. Thanks!
Hi, I have an UITableView with 2 sections and 5 rows. In the first section I have 2 rows and in the second section I have 3 rows. I want to make the two rows in the first section that the user will NOT be able to tap on them. Thanks!
drf1229 macrumors regular Jun 22, 2009 237 0 Feb 14, 2010 #2 All you need to do is set the cell's selection style so that it doesn't highlight when selected: Code: cell.selectionStyle = UITableViewCellSelectionStyleNone; Also, be sure to exclude those cells if you choose to implement -tableView:didSelectRowAtIndexPath:
All you need to do is set the cell's selection style so that it doesn't highlight when selected: Code: cell.selectionStyle = UITableViewCellSelectionStyleNone; Also, be sure to exclude those cells if you choose to implement -tableView:didSelectRowAtIndexPath: