Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 243
DexterW Avatar asked Aug 30 '10 13:08

DexterW


2 Answers

Just a heads up even though this is an old post:

If you are using the simulator and the UITableView separator is not showing up between cells it may be due to the fact that your window scale is too small.

Change this by going to Window->Scale->100%

like image 192
LPace Avatar answered Oct 01 '22 14:10

LPace


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.

like image 27
Brian Avatar answered Oct 01 '22 13:10

Brian