I have created a UITableView with multiple columns to display a Football League Table. Now what I really need is a header to label each column which will ideally sit at the top of the table view. How would I do this?
Instead of setting it as the header for your first UITableView
section, it would make more sense in your situation to set it as the header to your entire table. This can be done with the tableHeaderView
property of UITableView
. For example:
UIView *myHeaderView = ...
[myTableView setTableHeaderView:myHeaderView];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With