Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Header to tableview in swift

I want to add header to tableview & not to sections in swift.I have class which is sub class of UITableViewController. I want to keep header part fixed & other part scrollable.

like image 492
poojathorat Avatar asked Jan 05 '15 10:01

poojathorat


1 Answers

If you want the Header and not section headers than this is the way to do it:

 self.tableView.tableHeaderView = 'your_value' ;// Here goes the UIView for the header
like image 62
Steelzeh Avatar answered Nov 09 '22 19:11

Steelzeh