UITableViewCell textLabel color not changing

后端 未结 1 1294
孤独总比滥情好
孤独总比滥情好 2020-12-06 12:03

I\'ve got a UITableView and as the cellForRowAtIndexPath method I am changing some attributes of the cell (font, size, etc.) Now all of the assignments listed below work ju

1条回答
  •  死守一世寂寞
    2020-12-06 12:47

    It's because of this:

    cell.userInteractionEnabled = NO;
    

    If you don't want your cells to be selectable, try using this instead:

    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    

    0 讨论(0)
提交回复
热议问题