Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

guydor

macrumors member
Original poster
Mar 10, 2009
67
0
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! :)
 
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:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.