I want to add a table header (not section headers) like in the contacts app for example:
exactly like that – a label beside an image above of the table.
I want the all view be scrollable so I can't place those outside of the table.
How can I do that?
Best Answer
UITableView
has atableHeaderView
property. Set that to whatever view you want up there.Use a new
UIView
as a container, add a text label and an image view to that newUIView
, then settableHeaderView
to the new view.For example, in a
UITableViewController
: