make UITableCellView unselectable

Discussion in 'iOS Programming' started by chhoda, May 19, 2010.

  1. chhoda macrumors 6502

    Joined:
    Oct 25, 2008
    #1
    I am using Custom UITableViewCell to design some controls in grouped tableview.

    I dont need scrolling and selecting cells of UITableView. I am able to stop scrolling,but I am unable to stop making cellview unselectable. if i do my cell's userinteractionenabled to false, the controls inside wont work. keeping selectable cell makes this cell look awry if by mistake user selects the cell.

    --CH
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
  3. Svinja macrumors newbie

    Joined:
    Oct 27, 2008
    #3
    you could also use:
    Code:
    cell.selectionStyle=UITableViewCellSelectionStyleNone;
    
    either in cell subclass or when creating cell in cellForRowAtIndexPath...
     

Share This Page