UITableViewCell separator not showing up

后端 未结 8 1512
梦如初夏
梦如初夏 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:33

    Is the UITableViewCell in IB associated with a UITableViewCell subclass that overrides drawRect:? If so, make sure you are calling the super implementation, as that's what draws the line at the bottom. If you are overriding layoutSubviews make sure no views are obscuring the bottom of the cell.

提交回复
热议问题