Search code examples
iphoneiosuitableviewseparatortableheader

UITableView tableHeaderView's missing separator


Possible Duplicate:
Separation between Header and first cell — In plain UITableView

When I have no tableHeaderView in tableView than all separator are visible. But if I create a custom tableHeaderView than first cell does not have a separator on top of the cell. Why does my custom tableHeaderView removes first separator? How can I put it back?


Solution

  • just make a label of height 2 and width 320 at the last of your custom header view and make label background color of your separator color and don't set any text to the lebel, this will work like a separator..