Need help please with UITableView

Discussion in 'iOS Programming' started by guydor, Feb 14, 2010.

  1. guydor macrumors member

    Joined:
    Mar 10, 2009
    #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! :)
     
  2. drf1229 macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
    #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:
     

Share This Page