UITableViewCell separator not showing up

后端 未结 8 1509
梦如初夏
梦如初夏 2020-12-09 15:13

I made a custom UITableViewCell in IB, but for some reason, despite the single line option for separator being selected, there are no separator lines on my table.

Ha

相关标签:
8条回答
  • 2020-12-09 15:56

    In my case, i forgot to call [super layoutSubviews] after overriding the layoutSubviews method. Took me two hours to find the problem.

    0 讨论(0)
  • 2020-12-09 15:56

    If you programmatically add subviews to your cell, make sure you add the subviews

    to cell.contentView and NOT to cell

    [cell.contentView addSubview:subview];
    
    0 讨论(0)
提交回复
热议问题