Search code examples
iphoneuitableviewcellseparator

UITableViewCell separator not showing up


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.

Has this happened to any of you before? What gives?

Thanks!


Solution

  • 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.