解决方案 »

  1.   

    估计是重用的问题
    实现
    -(void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
    这个方法,把没选中的颜色改回原来的
      

  2.   

    哦,没注意你是要多选
    自己去实现一个uitableviewCell的子类,创建的时候默认就会给你继续选择的方法,在那边实现选中的功能可能比较容易- (void)setSelected:(BOOL)selected animated:(BOOL)animated
    {
        [super setSelected:selected animated:animated];    // Configure the view for the selected state
    }
      

  3.   

    我觉得正常的做法应该是你在didSelectRowAtIndexPath这个方法中设置cell.selected=!cell.selected
    然后在cellForRowAtIndexPath方法中根据cell的selected值上不同的颜色
      

  4.   

    貌似你得data model 需要增加1个颜色得属性,也许是个数字什么,要把颜色属性记录下来 class  style {
      id: 
     color:
     description: 
    } 10 个styles 。 u know ?
      

  5.   

    不太清楚请详细讲解下谢谢 。我就不知道为什么我点击第一个每15个cell都会变成红色。
      

  6.   

    每个style 有唯一编号, 选中其中1个时将其颜色属性assgin value,cell显示得时候取出来判断什么颜色,再显示之