I have a TableViewController, that manages a UITableView. Now I want to make a header menu (different for the one in navigation bar by default) and a search bar (also different from the default one). The problem is that I try to drop a UIView above the TablewView, but I can’t, it always goes inside the tableview (in the storyboard).
Is it possible to do what I’m trying to do?
Thanks a lot!
You will need to use something else than
UITableViewController.Subclass
UIViewControllerand add a tableview into it, but with ayposition that is>0. Now, set yourUIViewControllersubclass as thedelegateanddataSourceof thatUITableViewand implement all the necessary methods. ( references here and here )You will be able to change the layout of that
tableViewand add whatever view you want to add to theself.view