Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize a table view section header in a storyboard rather than programmatically?

I want to customize the table view section header of a static table, this can be done programmatically (How to customize tableView Section View - iPhone).

However is there a way of having the header view and designing its layout graphically within a storyboard?

(If not I could use a .xib to hold the view, but having it in the storyboard in the actual table would be more convenient)

Similarly for the main table header.

like image 680
Gruntcakes Avatar asked Feb 10 '14 18:02

Gruntcakes


1 Answers

Just drag a UIView at the top of your UITableView and you are good to go :).

EDIT:

For the section headers you can add another cell in your table in storyboard and programmatically choose between the two cells depending on whether it's a header or not.

like image 105
Mika Avatar answered Sep 21 '22 21:09

Mika